Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_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.001163/0.001163, allocations: 110 kB / 18.3 MB, free: 4.84 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.001516/0.001516, allocations: 199.4 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 242.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2198/0.2198, allocations: 44.19 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 65.52 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1104, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01397/0.1244, allocations: 13.4 MB / 483.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009746/0.1342, allocations: 4.789 MB / 488.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.1368, allocations: 95.69 kB / 488.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006842/0.1437, allocations: 3.734 MB / 491.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005885/0.1496, allocations: 2.19 MB / 494.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002477/0.1521, allocations: 1.072 MB / 495.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008784/0.1609, allocations: 6.522 MB / 0.49 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005542/0.1665, allocations: 4.51 MB / 0.4944 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.1704, allocations: 2.025 MB / 0.4963 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004758/0.1752, allocations: 2.738 MB / 0.499 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001557/0.1768, allocations: 428 kB / 0.4994 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003674/0.1805, allocations: 1.459 MB / 0.5009 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003042/0.1836, allocations: 2.451 MB / 0.5032 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2378/0.4215, allocations: 2.781 MB / 0.506 GB, free: 20.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.4349, allocations: 8.569 MB / 0.5143 GB, free: 19.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.435, allocations: 3.75 kB / 0.5143 GB, free: 19.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.435, allocations: 1.312 kB / 0.5143 GB, free: 19.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004008/0.4354, allocations: 0 / 0.5143 GB, free: 19.29 MB / 382.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.02399/0.4594, allocations: 6.242 MB / 0.5204 GB, free: 16.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.4595, allocations: 8.656 kB / 0.5204 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01324/0.4727, allocations: 2.526 MB / 0.5229 GB, free: 16.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.484, allocations: 3.925 MB / 0.5267 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.4843, allocations: 283.8 kB / 0.527 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002458/0.4868, allocations: 389.5 kB / 0.5274 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02581/0.5126, allocations: 12.01 MB / 0.5391 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003094/0.513, allocations: 56.88 kB / 0.5392 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001681/0.5147, allocations: 182.6 kB / 0.5393 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003255/0.5179, allocations: 2.138 MB / 0.5414 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02183/0.5398, allocations: 10.37 MB / 0.5515 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07335/0.6132, allocations: 47.5 MB / 0.5979 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01578/0.629, allocations: 5.825 MB / 0.6036 GB, free: 8.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004665/0.6337, allocations: 2.974 MB / 0.6065 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/0.6508, allocations: 8.866 MB / 0.6152 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.403e-05/0.6509, allocations: 65.81 kB / 0.6152 GB, free: 12.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=206): time 5.531e-06/0.651, allocations: 0 / 0.6152 GB, free: 12.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=262): time 0.1379/0.7888, allocations: 34.93 MB / 0.6494 GB, free: 9.887 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.789, allocations: 205.9 kB / 0.6496 GB, free: 9.645 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/0.8006, allocations: 4.765 MB / 0.6542 GB, free: 4.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007982/0.8015, allocations: 65.7 kB / 0.6543 GB, free: 4.805 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003483/0.805, allocations: 3.545 MB / 0.6577 GB, free: 1.262 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001812/0.8068, allocations: 0.9678 MB / 0.6587 GB, free: 308 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004762/0.8116, allocations: 1.427 MB / 0.6601 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.8117, allocations: 309.1 kB / 0.6604 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006054/0.8178, allocations: 3.176 MB / 0.6635 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00979/0.8276, allocations: 7.045 MB / 0.6704 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01577/0.8434, allocations: 10.95 MB / 0.681 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001506/0.8436, allocations: 40 kB / 0.6811 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03472/0.8783, allocations: 13.74 MB / 0.6945 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002001/0.8786, allocations: 67.94 kB / 0.6946 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000262/0.8789, allocations: 132 kB / 0.6947 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/0.8928, allocations: 4.396 MB / 0.699 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005557/0.8984, allocations: 1.482 MB / 0.7004 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2925/1.191, allocations: 29.04 MB / 0.7288 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006447/1.197, allocations: 410.8 kB / 0.7292 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.199, allocations: 410 kB / 0.7296 GB, free: 171.9 MB / 0.5294 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.005125/1.204, allocations: 2.474 MB / 0.732 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/1.205, allocations: 435.4 kB / 0.7324 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01552/1.221, allocations: 8.486 MB / 0.7407 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.507e-05/1.221, allocations: 30.88 kB / 0.7407 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/1.221, allocations: 11.62 kB / 0.7407 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.276e-05/1.221, allocations: 15.03 kB / 0.7407 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03049/1.251, allocations: 17.07 MB / 0.7574 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.192e-05/1.251, allocations: 8.484 kB / 0.7574 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.253, allocations: 303.2 kB / 0.7577 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01009/1.263, allocations: 3.976 MB / 0.7616 GB, free: 148 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005352/1.264, allocations: 48 kB / 0.7616 GB, free: 147.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02978/1.293, allocations: 27.75 MB / 0.7887 GB, free: 120 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.293, allocations: 15.94 kB / 0.7888 GB, free: 120 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01917/1.313, allocations: 12.43 MB / 0.8009 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/1.314, allocations: 499.2 kB / 0.8014 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/1.316, allocations: 44 kB / 0.8014 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003032/1.319, allocations: 175.8 kB / 0.8016 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008776/1.32, allocations: 186.1 kB / 0.8018 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/1.32, allocations: 79.92 kB / 0.8018 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004831/1.325, allocations: 3.006 MB / 0.8048 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/1.325, allocations: 0 / 0.8048 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007881/1.333, allocations: 1.467 MB / 0.8062 GB, free: 102.1 MB / 0.5294 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.0006858/1.333, allocations: 192.2 kB / 0.8064 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01572/1.349, allocations: 10.01 MB / 0.8162 GB, free: 91.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.349, allocations: 0 / 0.8162 GB, free: 91.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005274/1.354, allocations: 3.538 MB / 0.8196 GB, free: 88.34 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004249/1.359, allocations: 0.5763 MB / 0.8202 GB, free: 87.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02139/1.38, allocations: 13.05 MB / 0.8329 GB, free: 74.62 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004419/1.384, allocations: 3.891 MB / 0.8367 GB, free: 70.69 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001293/1.386, allocations: 327.4 kB / 0.837 GB, free: 70.37 MB / 0.5294 GB Notification: Performance of SimCode: time 5.61e-07/1.386, allocations: 0 / 0.837 GB, free: 70.37 MB / 0.5294 GB Notification: Performance of Templates: time 0.4262/1.812, allocations: 141.8 MB / 0.9755 GB, free: 118 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches