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.0012/0.0012, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001213/0.001213, allocations: 188 kB / 18.71 MB, free: 4.387 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.545/1.545, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.2302/0.2302, allocations: 44.19 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 67.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4496, allocations: 60.82 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.02093/0.4706, allocations: 16.01 MB / 0.5345 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.4858, allocations: 5.449 MB / 0.5398 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005248/0.4911, allocations: 112.4 kB / 0.54 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01086/0.502, allocations: 5.132 MB / 0.545 GB, free: 188 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008995/0.5111, allocations: 2.622 MB / 0.5475 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003889/0.515, allocations: 1.386 MB / 0.5489 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01445/0.5294, allocations: 8.106 MB / 0.5568 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01013/0.5396, allocations: 7.026 MB / 0.5637 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006264/0.5459, allocations: 2.769 MB / 0.5664 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006832/0.5528, allocations: 3.759 MB / 0.57 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002718/0.5555, allocations: 0.6367 MB / 0.5707 GB, free: 6.887 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005456/0.561, allocations: 1.799 MB / 0.5724 GB, free: 5.086 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006195/0.5672, allocations: 3.371 MB / 0.5757 GB, free: 1.707 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008716/0.576, allocations: 3.71 MB / 0.5793 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01929/0.5953, allocations: 11.98 MB / 0.591 GB, free: 1.957 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.525e-06/0.5953, allocations: 0 / 0.591 GB, free: 1.957 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5954, allocations: 0 / 0.591 GB, free: 1.957 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004669/0.5958, allocations: 0 / 0.591 GB, free: 1.957 MB / 446.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.02668/0.6225, allocations: 7.912 MB / 0.5988 GB, free: 9.957 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.6226, allocations: 12.03 kB / 0.5988 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.6383, allocations: 3.049 MB / 0.6017 GB, free: 6.883 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.6539, allocations: 5.131 MB / 0.6067 GB, free: 1.672 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006897/0.6547, allocations: 378.2 kB / 0.6071 GB, free: 1.301 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003468/0.6582, allocations: 0.5113 MB / 0.6076 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03733/0.6955, allocations: 15.51 MB / 0.6228 GB, free: 388 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003984/0.696, allocations: 71.36 kB / 0.6228 GB, free: 316 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002355/0.6983, allocations: 235.8 kB / 0.623 GB, free: 80 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004315/0.7027, allocations: 2.552 MB / 0.6255 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03161/0.7343, allocations: 13.09 MB / 0.6383 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09944/0.8338, allocations: 57.31 MB / 0.6943 GB, free: 5.508 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/0.8528, allocations: 6.371 MB / 0.7005 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00566/0.8585, allocations: 3.446 MB / 0.7039 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3681/1.227, allocations: 11.56 MB / 0.7152 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/1.227, allocations: 62.39 kB / 0.7152 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=248): time 5.611e-06/1.227, allocations: 0.5312 kB / 0.7152 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=343): time 0.1279/1.355, allocations: 39.54 MB / 0.7538 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.273e-05/1.355, allocations: 247.9 kB / 0.7541 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007192/1.362, allocations: 5.703 MB / 0.7597 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009762/1.363, allocations: 81.53 kB / 0.7597 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002274/1.365, allocations: 4.343 MB / 0.764 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001518/1.367, allocations: 1.269 MB / 0.7652 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002175/1.369, allocations: 1.753 MB / 0.7669 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.261e-05/1.369, allocations: 301.1 kB / 0.7672 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004578/1.374, allocations: 4.089 MB / 0.7712 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006904/1.381, allocations: 8.667 MB / 0.7797 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/1.394, allocations: 13.55 MB / 0.7929 GB, free: 105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001506/1.395, allocations: 48 kB / 0.7929 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03194/1.426, allocations: 16.38 MB / 0.8089 GB, free: 88.51 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.094e-05/1.427, allocations: 76.06 kB / 0.809 GB, free: 88.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/1.427, allocations: 165 kB / 0.8092 GB, free: 88.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01217/1.439, allocations: 4.281 MB / 0.8134 GB, free: 83.99 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006537/1.446, allocations: 1.899 MB / 0.8152 GB, free: 82.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02611/1.472, allocations: 21.53 MB / 0.8362 GB, free: 60.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007753/1.48, allocations: 0.5071 MB / 0.8367 GB, free: 59.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/1.481, allocations: 480 kB / 0.8372 GB, free: 59.45 MB / 0.5606 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.006205/1.488, allocations: 3.137 MB / 0.8402 GB, free: 56.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/1.489, allocations: 0.5168 MB / 0.8408 GB, free: 55.78 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/1.507, allocations: 10.1 MB / 0.8506 GB, free: 45.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.043e-05/1.507, allocations: 36 kB / 0.8507 GB, free: 45.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.571e-05/1.507, allocations: 20 kB / 0.8507 GB, free: 45.56 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.854e-05/1.507, allocations: 15.94 kB / 0.8507 GB, free: 45.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0346/1.542, allocations: 20.08 MB / 0.8703 GB, free: 25.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.853e-05/1.542, allocations: 6.812 kB / 0.8703 GB, free: 25.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002266/1.544, allocations: 0.4953 MB / 0.8708 GB, free: 24.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01101/1.555, allocations: 3.833 MB / 0.8745 GB, free: 20.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007445/1.556, allocations: 71.92 kB / 0.8746 GB, free: 20.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02267/1.579, allocations: 19.1 MB / 0.8932 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/1.579, allocations: 11.94 kB / 0.8933 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02957/1.608, allocations: 14.91 MB / 0.9078 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002439/1.611, allocations: 0.5685 MB / 0.9084 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002221/1.613, allocations: 67.92 kB / 0.9084 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003881/1.617, allocations: 239.2 kB / 0.9087 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/1.618, allocations: 230.2 kB / 0.9089 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003232/1.618, allocations: 88 kB / 0.909 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.007008/1.625, allocations: 3.609 MB / 0.9125 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.1e-07/1.625, allocations: 0 / 0.9125 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009564/1.635, allocations: 1.785 MB / 0.9142 GB, free: 11.97 MB / 0.5919 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.001113/1.636, allocations: 257.6 kB / 0.9145 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01858/1.655, allocations: 9.843 MB / 0.9241 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.303e-05/1.655, allocations: 320 / 0.9241 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009965/1.665, allocations: 3.789 MB / 0.9278 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009925/1.675, allocations: 0.7187 MB / 0.9285 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3238/1.999, allocations: 15.87 MB / 0.944 GB, free: 212.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008718/2.007, allocations: 4.825 MB / 0.9487 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007617/2.015, allocations: 2.581 MB / 0.9512 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/2.017, allocations: 348.6 kB / 0.9516 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of SimCode: time 1.172e-06/2.017, allocations: 0 / 0.9516 GB, free: 211.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.1194/2.136, allocations: 75.35 MB / 1.025 GB, free: 155.4 MB / 0.6231 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins/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