Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 111.2 kB / 17.86 MB, free: 5.504 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.001331/0.001331, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.372/1.372, allocations: 222.9 MB / 242.5 MB, free: 13.77 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.2079/0.2079, allocations: 44.18 MB / 336.8 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 56.34 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1295, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3328/0.4623, allocations: 68.42 MB / 0.525 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03368/0.496, allocations: 14.25 MB / 0.5389 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01845/0.5145, allocations: 315 kB / 0.5392 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008589/0.5232, allocations: 5.142 MB / 0.5442 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008471/0.5317, allocations: 2.472 MB / 0.5466 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003215/0.535, allocations: 1.276 MB / 0.5479 GB, free: 480 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.5507, allocations: 11.65 MB / 0.5593 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01118/0.562, allocations: 6.89 MB / 0.566 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005374/0.5674, allocations: 2.441 MB / 0.5684 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006639/0.5741, allocations: 3.949 MB / 0.5722 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002122/0.5762, allocations: 428 kB / 0.5726 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005172/0.5814, allocations: 1.677 MB / 0.5743 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004812/0.5863, allocations: 3.152 MB / 0.5774 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007266/0.5936, allocations: 3.499 MB / 0.5808 GB, free: 2.371 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.6052, allocations: 9.585 MB / 0.5901 GB, free: 8.766 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.6053, allocations: 0 / 0.5901 GB, free: 8.766 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6053, allocations: 0 / 0.5901 GB, free: 8.766 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000472/0.6058, allocations: 0 / 0.5901 GB, free: 8.766 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02411/0.6299, allocations: 7.912 MB / 0.5979 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.6299, allocations: 15.97 kB / 0.5979 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/0.6445, allocations: 3.042 MB / 0.6008 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.6555, allocations: 5.018 MB / 0.6057 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000286/0.6558, allocations: 378.4 kB / 0.6061 GB, free: 8.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001864/0.6577, allocations: 0.5152 MB / 0.6066 GB, free: 7.715 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03021/0.6879, allocations: 15.51 MB / 0.6217 GB, free: 7.305 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002262/0.6882, allocations: 71.38 kB / 0.6218 GB, free: 7.234 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008097/0.689, allocations: 235.8 kB / 0.622 GB, free: 7.004 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0038/0.6928, allocations: 2.544 MB / 0.6245 GB, free: 4.457 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02843/0.7213, allocations: 13.09 MB / 0.6373 GB, free: 7.336 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08476/0.8061, allocations: 57.59 MB / 0.6936 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01781/0.8239, allocations: 6.379 MB / 0.6998 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004965/0.8289, allocations: 3.446 MB / 0.7032 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2655/1.094, allocations: 11.56 MB / 0.7144 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/1.095, allocations: 62.86 kB / 0.7145 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 5.13e-06/1.095, allocations: 0 / 0.7145 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1373/1.232, allocations: 39.53 MB / 0.7531 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.232, allocations: 239.9 kB / 0.7533 GB, free: 163 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/1.243, allocations: 5.707 MB / 0.7589 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.245, allocations: 77.7 kB / 0.759 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002846/1.247, allocations: 4.352 MB / 0.7632 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001716/1.249, allocations: 1.258 MB / 0.7645 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00302/1.252, allocations: 1.753 MB / 0.7662 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/1.252, allocations: 309.1 kB / 0.7665 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005376/1.258, allocations: 4.086 MB / 0.7705 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007918/1.266, allocations: 8.673 MB / 0.7789 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/1.28, allocations: 13.56 MB / 0.7922 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001717/1.28, allocations: 44 kB / 0.7922 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03403/1.314, allocations: 16.38 MB / 0.8082 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002323/1.314, allocations: 72 kB / 0.8083 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002998/1.315, allocations: 159.5 kB / 0.8084 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01362/1.328, allocations: 4.275 MB / 0.8126 GB, free: 97.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006673/1.335, allocations: 1.902 MB / 0.8145 GB, free: 95.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/1.363, allocations: 20.18 MB / 0.8342 GB, free: 75.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007415/1.37, allocations: 0.507 MB / 0.8347 GB, free: 75.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001782/1.372, allocations: 487.8 kB / 0.8351 GB, free: 74.58 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (1031): * Single equations (assignments): 1027 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006206/1.378, allocations: 3.119 MB / 0.8382 GB, free: 71.45 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.38, allocations: 0.5129 MB / 0.8387 GB, free: 70.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0213/1.401, allocations: 10.11 MB / 0.8486 GB, free: 60.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.657e-05/1.401, allocations: 32 kB / 0.8486 GB, free: 60.72 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-05/1.401, allocations: 18.56 kB / 0.8486 GB, free: 60.71 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-05/1.402, allocations: 19.88 kB / 0.8486 GB, free: 60.69 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04274/1.444, allocations: 20.16 MB / 0.8683 GB, free: 40.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.545e-05/1.444, allocations: 9.734 kB / 0.8683 GB, free: 40.35 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002413/1.447, allocations: 0.4993 MB / 0.8688 GB, free: 39.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01234/1.459, allocations: 3.829 MB / 0.8725 GB, free: 36.01 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008646/1.46, allocations: 63.98 kB / 0.8726 GB, free: 35.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/1.483, allocations: 17.82 MB / 0.89 GB, free: 18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/1.483, allocations: 11.94 kB / 0.89 GB, free: 17.99 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2781/1.762, allocations: 14.89 MB / 0.9046 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/1.763, allocations: 0.5802 MB / 0.9051 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001461/1.765, allocations: 62.56 kB / 0.9052 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00314/1.768, allocations: 232.1 kB / 0.9054 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009319/1.769, allocations: 230.9 kB / 0.9056 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002927/1.769, allocations: 93.28 kB / 0.9057 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007079/1.776, allocations: 3.604 MB / 0.9092 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.6e-07/1.776, allocations: 0 / 0.9092 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009498/1.786, allocations: 1.786 MB / 0.911 GB, free: 165.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.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 (261): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001041/1.787, allocations: 259.2 kB / 0.9112 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01463/1.802, allocations: 9.804 MB / 0.9208 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/1.802, allocations: 3.938 kB / 0.9208 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005235/1.807, allocations: 3.795 MB / 0.9245 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004793/1.812, allocations: 0.6814 MB / 0.9252 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02764/1.839, allocations: 19.73 MB / 0.9444 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005674/1.845, allocations: 4.792 MB / 0.9491 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.847, allocations: 405.9 kB / 0.9495 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.212e-06/1.847, allocations: 3.938 kB / 0.9495 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1637/2.011, allocations: 122.7 MB / 1.069 GB, free: 26.72 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches