Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_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.001415/0.001415, allocations: 101.9 kB / 16.26 MB, free: 5.973 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.001314/0.001314, allocations: 188.6 kB / 17.19 MB, free: 5.605 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.495/1.495, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2407/0.2407, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001824/0.001824, allocations: 69.84 kB / 382.7 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1422, allocations: 57.79 MB / 440.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01674/0.159, allocations: 16.05 MB / 456.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.1726, allocations: 5.445 MB / 462 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00426/0.1769, allocations: 111.7 kB / 462.1 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009875/0.1868, allocations: 5.132 MB / 467.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.1976, allocations: 2.622 MB / 469.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005617/0.2033, allocations: 1.4 MB / 471.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01344/0.2167, allocations: 7.595 MB / 478.9 MB, free: 432 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0134/0.2302, allocations: 7.048 MB / 485.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007432/0.2376, allocations: 2.769 MB / 488.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007848/0.2455, allocations: 3.763 MB / 492.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003498/0.2491, allocations: 0.6367 MB / 493.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00611/0.2552, allocations: 1.775 MB / 494.9 MB, free: 328 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006818/0.2621, allocations: 3.347 MB / 498.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01058/0.2727, allocations: 3.722 MB / 0.4902 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01824/0.291, allocations: 11.7 MB / 0.5016 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.291, allocations: 0 / 0.5016 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.291, allocations: 0 / 0.5016 GB, free: 13.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005171/0.2916, allocations: 0 / 0.5016 GB, free: 13.49 MB / 398.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.02633/0.3179, allocations: 7.924 MB / 0.5093 GB, free: 5.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.318, allocations: 15.89 kB / 0.5093 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01667/0.3346, allocations: 3.057 MB / 0.5123 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01538/0.3501, allocations: 5.17 MB / 0.5174 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005272/0.3506, allocations: 382.2 kB / 0.5177 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003172/0.3538, allocations: 0.5113 MB / 0.5182 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3131/0.6669, allocations: 15.51 MB / 0.5334 GB, free: 78.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004136/0.6674, allocations: 68.7 kB / 0.5334 GB, free: 78.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001976/0.6694, allocations: 237.7 kB / 0.5337 GB, free: 78.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005266/0.6747, allocations: 2.547 MB / 0.5362 GB, free: 78.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02986/0.7046, allocations: 13.09 MB / 0.5489 GB, free: 74.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06837/0.773, allocations: 57.61 MB / 0.6052 GB, free: 20.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/0.7888, allocations: 6.377 MB / 0.6114 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/0.7923, allocations: 3.445 MB / 0.6148 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/0.8072, allocations: 11.57 MB / 0.6261 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.371e-05/0.8073, allocations: 60.5 kB / 0.6262 GB, free: 14.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.759e-06/0.8073, allocations: 0 / 0.6262 GB, free: 14.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=343): time 0.1664/0.9737, allocations: 39.6 MB / 0.6648 GB, free: 6.863 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.9739, allocations: 243.9 kB / 0.6651 GB, free: 6.574 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/0.986, allocations: 5.735 MB / 0.6707 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001107/0.9872, allocations: 77.7 kB / 0.6707 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004356/0.9916, allocations: 4.361 MB / 0.675 GB, free: 12.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002267/0.9939, allocations: 1.261 MB / 0.6762 GB, free: 11.08 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003722/0.9976, allocations: 1.749 MB / 0.6779 GB, free: 9.316 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.9977, allocations: 305.1 kB / 0.6782 GB, free: 9.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006295/1.004, allocations: 4.085 MB / 0.6822 GB, free: 4.922 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/1.014, allocations: 8.672 MB / 0.6907 GB, free: 10.01 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01778/1.032, allocations: 13.56 MB / 0.7039 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/1.032, allocations: 44 kB / 0.704 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.0417/1.074, allocations: 16.39 MB / 0.72 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002235/1.074, allocations: 72 kB / 0.72 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003382/1.075, allocations: 160.2 kB / 0.7202 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0145/1.089, allocations: 4.295 MB / 0.7244 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007237/1.096, allocations: 1.895 MB / 0.7262 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2939/1.39, allocations: 21.55 MB / 0.7473 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007132/1.397, allocations: 0.4985 MB / 0.7478 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009488/1.398, allocations: 488.6 kB / 0.7482 GB, free: 161.7 MB / 0.5137 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.004434/1.403, allocations: 3.136 MB / 0.7513 GB, free: 160.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009823/1.404, allocations: 0.5185 MB / 0.7518 GB, free: 160.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01842/1.422, allocations: 10.1 MB / 0.7617 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.63e-05/1.422, allocations: 36.25 kB / 0.7617 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.537e-05/1.422, allocations: 19.09 kB / 0.7617 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.232e-05/1.422, allocations: 14.67 kB / 0.7617 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03321/1.456, allocations: 20.18 MB / 0.7814 GB, free: 147.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.556e-05/1.456, allocations: 8 kB / 0.7814 GB, free: 147.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002361/1.458, allocations: 0.4914 MB / 0.7819 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01142/1.47, allocations: 3.851 MB / 0.7857 GB, free: 142.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006654/1.47, allocations: 67.94 kB / 0.7858 GB, free: 142.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02271/1.493, allocations: 19.12 MB / 0.8044 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.493, allocations: 8 kB / 0.8044 GB, free: 123.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02406/1.517, allocations: 14.9 MB / 0.819 GB, free: 108.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003484/1.521, allocations: 1.176 MB / 0.8201 GB, free: 107.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/1.522, allocations: 63.98 kB / 0.8202 GB, free: 107.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00324/1.525, allocations: 229.7 kB / 0.8204 GB, free: 107.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007562/1.526, allocations: 224.7 kB / 0.8206 GB, free: 107.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002486/1.526, allocations: 94.81 kB / 0.8207 GB, free: 107.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005202/1.531, allocations: 3.636 MB / 0.8243 GB, free: 103.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.783e-06/1.531, allocations: 0 / 0.8243 GB, free: 103.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008447/1.54, allocations: 1.791 MB / 0.826 GB, free: 101.8 MB / 0.5137 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.0008646/1.541, allocations: 257.9 kB / 0.8263 GB, free: 101.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01869/1.56, allocations: 13.29 MB / 0.8392 GB, free: 88.32 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/1.56, allocations: 0 / 0.8392 GB, free: 88.32 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00468/1.564, allocations: 3.788 MB / 0.8429 GB, free: 84.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/1.569, allocations: 0.7372 MB / 0.8437 GB, free: 83.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/1.591, allocations: 16.09 MB / 0.8594 GB, free: 67.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004742/1.596, allocations: 4.835 MB / 0.8641 GB, free: 62.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005874/1.601, allocations: 2.581 MB / 0.8666 GB, free: 60.15 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.603, allocations: 351.4 kB / 0.8669 GB, free: 59.8 MB / 0.5137 GB Notification: Performance of SimCode: time 9.72e-07/1.603, allocations: 0 / 0.8669 GB, free: 59.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.3575/1.96, allocations: 79.06 MB / 0.9441 GB, free: 156.4 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches