Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 220.2 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 230.5 MB / 258.2 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.92 MB / 361.6 MB, free: 4.164 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 79.88 kB / 0.497 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2876, allocations: 66.08 MB / 0.5615 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01545/0.303, allocations: 13.47 MB / 0.5747 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009904/0.3129, allocations: 4.84 MB / 0.5794 GB, free: 1.887 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.315, allocations: 111.4 kB / 0.5795 GB, free: 1.777 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006848/0.3218, allocations: 3.792 MB / 0.5832 GB, free: 13.97 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005562/0.3274, allocations: 2.221 MB / 0.5854 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002452/0.3298, allocations: 1.08 MB / 0.5864 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.3399, allocations: 6.67 MB / 0.5929 GB, free: 3.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005738/0.3456, allocations: 3.548 MB / 0.5964 GB, free: 372 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004056/0.3497, allocations: 2.06 MB / 0.5984 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006357/0.356, allocations: 2.96 MB / 0.6013 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002017/0.3581, allocations: 428 kB / 0.6017 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004186/0.3622, allocations: 1.486 MB / 0.6032 GB, free: 9.422 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00367/0.3659, allocations: 2.544 MB / 0.6056 GB, free: 6.871 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004839/0.3708, allocations: 2.832 MB / 0.6084 GB, free: 4.023 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.3833, allocations: 8.942 MB / 0.6171 GB, free: 11.04 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3834, allocations: 0 / 0.6171 GB, free: 11.04 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3834, allocations: 0 / 0.6171 GB, free: 11.04 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002971/0.3836, allocations: 0 / 0.6171 GB, free: 11.04 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01795/0.4016, allocations: 6.521 MB / 0.6235 GB, free: 4.457 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.4016, allocations: 12.03 kB / 0.6235 GB, free: 4.445 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001952/0.4018, allocations: 142.6 kB / 0.6236 GB, free: 4.305 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002392/0.4042, allocations: 0.9122 MB / 0.6245 GB, free: 3.383 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0384/0.4426, allocations: 6.055 MB / 0.6305 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.4544, allocations: 4.578 MB / 0.6349 GB, free: 8.676 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003387/0.4548, allocations: 291.3 kB / 0.6352 GB, free: 8.391 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001653/0.4564, allocations: 391.7 kB / 0.6356 GB, free: 8.008 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03072/0.4872, allocations: 11.91 MB / 0.6472 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/0.4875, allocations: 59.53 kB / 0.6473 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001666/0.4892, allocations: 179.8 kB / 0.6474 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005655/0.4948, allocations: 2.147 MB / 0.6495 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03215/0.527, allocations: 10.17 MB / 0.6595 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07064/0.5976, allocations: 47.03 MB / 0.7054 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01472/0.6123, allocations: 5.11 MB / 0.7104 GB, free: 9.188 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003955/0.6163, allocations: 2.661 MB / 0.713 GB, free: 6.512 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01512/0.6314, allocations: 8.297 MB / 0.7211 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.847e-05/0.6315, allocations: 59.81 kB / 0.7211 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=206): time 4.849e-06/0.6315, allocations: 0 / 0.7211 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=262): time 0.3617/0.9932, allocations: 34.79 MB / 0.7551 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.9932, allocations: 209.9 kB / 0.7553 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005368/0.9986, allocations: 4.795 MB / 0.76 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006713/0.9993, allocations: 61.7 kB / 0.7601 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002924/1.002, allocations: 3.744 MB / 0.7637 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001538/1.004, allocations: 1.009 MB / 0.7647 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002224/1.006, allocations: 1.36 MB / 0.766 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.302e-05/1.006, allocations: 305.1 kB / 0.7663 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003234/1.009, allocations: 3.027 MB / 0.7693 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004426/1.014, allocations: 6.84 MB / 0.776 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009184/1.023, allocations: 10.67 MB / 0.7864 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-05/1.023, allocations: 39.94 kB / 0.7864 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02445/1.047, allocations: 13.17 MB / 0.7993 GB, free: 101.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/1.047, allocations: 64 kB / 0.7993 GB, free: 101.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/1.048, allocations: 135.2 kB / 0.7995 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/1.058, allocations: 4.225 MB / 0.8036 GB, free: 97.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004113/1.063, allocations: 1.407 MB / 0.805 GB, free: 95.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0307/1.093, allocations: 28.26 MB / 0.8326 GB, free: 67.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006624/1.1, allocations: 391.6 kB / 0.8329 GB, free: 66.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001352/1.101, allocations: 403.6 kB / 0.8333 GB, free: 66.47 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 750 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.004597/1.106, allocations: 2.462 MB / 0.8357 GB, free: 63.99 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.107, allocations: 468.8 kB / 0.8362 GB, free: 63.53 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01569/1.123, allocations: 8.168 MB / 0.8442 GB, free: 55.34 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.797e-05/1.123, allocations: 28 kB / 0.8442 GB, free: 55.31 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.11e-05/1.123, allocations: 16 kB / 0.8442 GB, free: 55.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.428e-05/1.123, allocations: 15.95 kB / 0.8442 GB, free: 55.28 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02976/1.153, allocations: 16.65 MB / 0.8605 GB, free: 38.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-05/1.153, allocations: 8 kB / 0.8605 GB, free: 38.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/1.154, allocations: 295.6 kB / 0.8608 GB, free: 38.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009802/1.164, allocations: 3.805 MB / 0.8645 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00069/1.165, allocations: 55.67 kB / 0.8645 GB, free: 34.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03019/1.195, allocations: 27.06 MB / 0.891 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.195, allocations: 11.94 kB / 0.891 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/1.219, allocations: 12.09 MB / 0.9028 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001708/1.22, allocations: 444.7 kB / 0.9032 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/1.222, allocations: 51.94 kB / 0.9032 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.224, allocations: 175.5 kB / 0.9034 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008902/1.225, allocations: 198 kB / 0.9036 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002464/1.226, allocations: 72 kB / 0.9037 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005948/1.232, allocations: 3.035 MB / 0.9066 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/1.232, allocations: 0 / 0.9066 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007652/1.239, allocations: 1.41 MB / 0.908 GB, free: 5.375 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02645/1.266, allocations: 12.76 MB / 0.9205 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01779/1.283, allocations: 7.904 MB / 0.9282 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/1.283, allocations: 4 kB / 0.9282 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007672/1.291, allocations: 3.281 MB / 0.9314 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005916/1.297, allocations: 0.607 MB / 0.932 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4186/1.716, allocations: 64.25 MB / 0.9947 GB, free: 230.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004313/1.72, allocations: 3.916 MB / 0.9986 GB, free: 229.7 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.003935/1.724, allocations: 2.009 MB / 1.001 GB, free: 229.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002947/1.727, allocations: 2.368 MB / 1.003 GB, free: 228.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.353e-06/1.727, allocations: 0 / 1.003 GB, free: 228.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/1.893, allocations: 119.6 MB / 1.12 GB, free: 113.4 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.15/25.05, allocations: 4.062 kB / 1.12 GB, free: 113.3 MB / 0.6544 GB " [Timeout remaining time 635] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.8471484730253]