Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 110.8 kB / 17.08 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 191.1 kB / 18.01 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.226/0.226, allocations: 43.51 MB / 314.8 MB, free: 472 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 63.91 kB / 442.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1076, allocations: 57.8 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01391/0.1216, allocations: 13.47 MB / 0.5017 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1318, allocations: 4.806 MB / 0.5064 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002536/0.1343, allocations: 95.69 kB / 0.5065 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006866/0.1413, allocations: 3.738 MB / 0.5101 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006108/0.1474, allocations: 2.194 MB / 0.5123 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.15, allocations: 1.08 MB / 0.5133 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008346/0.1584, allocations: 6.198 MB / 0.5194 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006197/0.1646, allocations: 4.526 MB / 0.5238 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003879/0.1685, allocations: 2.048 MB / 0.5258 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004469/0.173, allocations: 2.769 MB / 0.5285 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001504/0.1745, allocations: 428 kB / 0.5289 GB, free: 2.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003574/0.1781, allocations: 1.451 MB / 0.5303 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2893/0.4674, allocations: 2.501 MB / 0.5328 GB, free: 12.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006288/0.4738, allocations: 2.789 MB / 0.5355 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.4901, allocations: 8.826 MB / 0.5441 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.4902, allocations: 0 / 0.5441 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.4902, allocations: 1.062 kB / 0.5441 GB, free: 10.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004999/0.4907, allocations: 0 / 0.5441 GB, free: 10.78 MB / 414.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.02469/0.5154, allocations: 6.253 MB / 0.5502 GB, free: 8.418 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.5155, allocations: 16.36 kB / 0.5502 GB, free: 8.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01348/0.529, allocations: 2.528 MB / 0.5527 GB, free: 8.062 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.5405, allocations: 4.128 MB / 0.5567 GB, free: 7.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.5409, allocations: 282.9 kB / 0.557 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/0.5432, allocations: 377.7 kB / 0.5574 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02582/0.5691, allocations: 12.01 MB / 0.5691 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002549/0.5694, allocations: 64.52 kB / 0.5691 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007783/0.5702, allocations: 178.3 kB / 0.5693 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003286/0.5735, allocations: 2.142 MB / 0.5714 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0227/0.5962, allocations: 10.37 MB / 0.5815 GB, free: 9.047 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07454/0.6708, allocations: 47.31 MB / 0.6277 GB, free: 9.059 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/0.6865, allocations: 5.83 MB / 0.6334 GB, free: 3.098 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00429/0.6908, allocations: 2.964 MB / 0.6363 GB, free: 132 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/0.707, allocations: 8.874 MB / 0.645 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/0.7071, allocations: 55.72 kB / 0.645 GB, free: 7.098 MB / 494.1 MB Notification: Performance of pre-optimization done (n=206): time 5.13e-06/0.7071, allocations: 1.688 kB / 0.645 GB, free: 7.098 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.1505/0.8576, allocations: 34.99 MB / 0.6792 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.8578, allocations: 212.8 kB / 0.6794 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01545/0.8733, allocations: 4.799 MB / 0.6841 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00119/0.8746, allocations: 69.69 kB / 0.6842 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005091/0.8797, allocations: 3.544 MB / 0.6876 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002279/0.882, allocations: 0.973 MB / 0.6886 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006067/0.8881, allocations: 1.424 MB / 0.69 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.8882, allocations: 301.1 kB / 0.6903 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006061/0.8943, allocations: 3.172 MB / 0.6934 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01011/0.9045, allocations: 7.045 MB / 0.7002 GB, free: 12.76 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01589/0.9204, allocations: 10.95 MB / 0.7109 GB, free: 488 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001824/0.9206, allocations: 36 kB / 0.711 GB, free: 452 kB / 0.545 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03638/0.957, allocations: 13.75 MB / 0.7244 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.9572, allocations: 67.98 kB / 0.7245 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002453/0.9575, allocations: 136.8 kB / 0.7246 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01401/0.9715, allocations: 4.385 MB / 0.7289 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006058/0.9776, allocations: 1.482 MB / 0.7303 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4281/1.406, allocations: 29.02 MB / 0.7587 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006745/1.413, allocations: 413.2 kB / 0.7591 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/1.414, allocations: 409.2 kB / 0.7594 GB, free: 202.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (798): * Single equations (assignments): 792 * 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.005594/1.419, allocations: 2.474 MB / 0.7619 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/1.421, allocations: 440.7 kB / 0.7623 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01876/1.439, allocations: 8.482 MB / 0.7706 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.683e-05/1.44, allocations: 31.8 kB / 0.7706 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.695e-05/1.44, allocations: 13 kB / 0.7706 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-05/1.44, allocations: 16.28 kB / 0.7706 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03152/1.471, allocations: 16.92 MB / 0.7871 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.76e-05/1.471, allocations: 7.656 kB / 0.7871 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/1.473, allocations: 303.2 kB / 0.7874 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/1.483, allocations: 3.963 MB / 0.7913 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004882/1.484, allocations: 49.44 kB / 0.7914 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03027/1.514, allocations: 27.79 MB / 0.8185 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.514, allocations: 4 kB / 0.8185 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01963/1.534, allocations: 12.44 MB / 0.8306 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002965/1.537, allocations: 0.9692 MB / 0.8316 GB, free: 159.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001727/1.538, allocations: 44 kB / 0.8316 GB, free: 159.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003019/1.541, allocations: 174.1 kB / 0.8318 GB, free: 159.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007909/1.542, allocations: 197.6 kB / 0.832 GB, free: 158.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/1.542, allocations: 68 kB / 0.8321 GB, free: 158.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005176/1.548, allocations: 3.033 MB / 0.835 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.1e-07/1.548, allocations: 0 / 0.835 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008175/1.556, allocations: 1.465 MB / 0.8364 GB, free: 154.4 MB / 0.5919 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.0005866/1.556, allocations: 187.4 kB / 0.8366 GB, free: 154.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0123/1.569, allocations: 8.475 MB / 0.8449 GB, free: 145.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.569, allocations: 0 / 0.8449 GB, free: 145.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005392/1.574, allocations: 3.531 MB / 0.8484 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004494/1.579, allocations: 0.5838 MB / 0.8489 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/1.605, allocations: 12.94 MB / 0.8616 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004803/1.61, allocations: 3.902 MB / 0.8654 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.611, allocations: 331.4 kB / 0.8657 GB, free: 124.4 MB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/1.611, allocations: 3.938 kB / 0.8657 GB, free: 124.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.4924/2.104, allocations: 142.8 MB / 1.005 GB, free: 190.1 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches