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.0009862/0.0009863, allocations: 100.8 kB / 17 MB, free: 6.477 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.00115/0.00115, allocations: 181.7 kB / 17.89 MB, free: 5.922 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.601/1.601, allocations: 223.3 MB / 241.9 MB, free: 340 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2404/0.2404, allocations: 44.25 MB / 337.3 MB, free: 2.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 9.219 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.122, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3307/0.4527, allocations: 62.05 MB / 0.5211 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03711/0.4899, allocations: 13.57 MB / 0.5344 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0159/0.5059, allocations: 300.2 kB / 0.5347 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01107/0.517, allocations: 3.206 MB / 0.5378 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02714/0.5442, allocations: 9.58 MB / 0.5472 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006491/0.5507, allocations: 1.164 MB / 0.5483 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1223/0.673, allocations: 91.81 MB / 0.638 GB, free: 10.24 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01823/0.6913, allocations: 8.156 MB / 0.6459 GB, free: 2.016 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006536/0.6979, allocations: 2.145 MB / 0.648 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006847/0.7048, allocations: 3.365 MB / 0.6513 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002281/0.7071, allocations: 240 kB / 0.6515 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004622/0.7117, allocations: 1.244 MB / 0.6527 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005041/0.7168, allocations: 2.836 MB / 0.6555 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002964/0.7198, allocations: 1.31 MB / 0.6568 GB, free: 6.844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.7326, allocations: 9.344 MB / 0.6659 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.7327, allocations: 0 / 0.6659 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7327, allocations: 0 / 0.6659 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.000488/0.7332, allocations: 4 kB / 0.6659 GB, free: 13.47 MB / 0.4981 GB 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.01794/0.7511, allocations: 6.603 MB / 0.6724 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.7512, allocations: 8.562 kB / 0.6724 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01444/0.7656, allocations: 3.115 MB / 0.6754 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/0.7791, allocations: 4.921 MB / 0.6802 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005292/0.7797, allocations: 377.8 kB / 0.6806 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003153/0.7828, allocations: 0.5152 MB / 0.6811 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03845/0.8213, allocations: 15.51 MB / 0.6962 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003436/0.8217, allocations: 67.42 kB / 0.6963 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002129/0.8239, allocations: 243.8 kB / 0.6965 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004105/0.828, allocations: 2.536 MB / 0.699 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3413/1.169, allocations: 13.09 MB / 0.7118 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07564/1.245, allocations: 57.53 MB / 0.768 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01538/1.26, allocations: 6.417 MB / 0.7742 GB, free: 142 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004297/1.265, allocations: 3.437 MB / 0.7776 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01567/1.281, allocations: 11.57 MB / 0.7889 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/1.281, allocations: 60.56 kB / 0.7889 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 6.011e-06/1.281, allocations: 2 kB / 0.7889 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1662/1.447, allocations: 39.58 MB / 0.8276 GB, free: 86.89 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.447, allocations: 243.8 kB / 0.8278 GB, free: 86.61 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01441/1.461, allocations: 5.672 MB / 0.8334 GB, free: 80.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.463, allocations: 80.98 kB / 0.8335 GB, free: 80.87 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004075/1.467, allocations: 4.348 MB / 0.8377 GB, free: 76.52 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002235/1.469, allocations: 1.259 MB / 0.8389 GB, free: 75.27 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009762/1.47, allocations: 172 kB / 0.8391 GB, free: 75.11 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005374/1.47, allocations: 0.6699 MB / 0.8397 GB, free: 74.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01005/1.481, allocations: 4.054 MB / 0.8437 GB, free: 70.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01334/1.494, allocations: 8.633 MB / 0.8521 GB, free: 59.49 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/1.508, allocations: 5.776 MB / 0.8578 GB, free: 53.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/1.508, allocations: 44 kB / 0.8578 GB, free: 53.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03771/1.546, allocations: 16.31 MB / 0.8737 GB, free: 37.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.00017/1.546, allocations: 72.19 kB / 0.8738 GB, free: 37.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/1.546, allocations: 156 kB / 0.874 GB, free: 37.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/1.559, allocations: 4.313 MB / 0.8782 GB, free: 32.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007807/1.567, allocations: 1.899 MB / 0.88 GB, free: 30.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02943/1.596, allocations: 20.16 MB / 0.8997 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007821/1.604, allocations: 0.5032 MB / 0.9002 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001992/1.606, allocations: 485.4 kB / 0.9007 GB, free: 9.586 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007125/1.613, allocations: 3.135 MB / 0.9037 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/1.615, allocations: 0.5168 MB / 0.9042 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3324/1.947, allocations: 10.08 MB / 0.9141 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/1.948, allocations: 35.75 kB / 0.9141 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.862e-05/1.948, allocations: 14.59 kB / 0.9141 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001171/1.948, allocations: 16.5 kB / 0.9142 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/1.993, allocations: 20.13 MB / 0.9338 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-05/1.993, allocations: 9.406 kB / 0.9338 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.995, allocations: 0.4957 MB / 0.9343 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.011/2.006, allocations: 3.845 MB / 0.9381 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006948/2.007, allocations: 59.56 kB / 0.9381 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.022/2.029, allocations: 17.8 MB / 0.9555 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/2.029, allocations: 8 kB / 0.9555 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02353/2.052, allocations: 14.86 MB / 0.97 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002111/2.055, allocations: 0.5868 MB / 0.9706 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001468/2.056, allocations: 63.89 kB / 0.9706 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002978/2.059, allocations: 232.6 kB / 0.9709 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007509/2.06, allocations: 234 kB / 0.9711 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003226/2.06, allocations: 96.53 kB / 0.9712 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005907/2.066, allocations: 3.565 MB / 0.9747 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/2.066, allocations: 0 / 0.9747 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007921/2.074, allocations: 1.788 MB / 0.9764 GB, free: 134.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006984/2.075, allocations: 236.8 kB / 0.9766 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01289/2.088, allocations: 9.765 MB / 0.9862 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/2.088, allocations: 0 / 0.9862 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005037/2.093, allocations: 3.772 MB / 0.9899 GB, free: 120.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007652/2.1, allocations: 0.7041 MB / 0.9905 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03211/2.133, allocations: 18.48 MB / 1.009 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006572/2.139, allocations: 4.825 MB / 1.013 GB, free: 96.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006061/2.145, allocations: 2.58 MB / 1.016 GB, free: 94.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/2.146, allocations: 347.4 kB / 1.016 GB, free: 93.88 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/2.146, allocations: 0 / 1.016 GB, free: 93.88 MB / 0.5294 GB Notification: Performance of Templates: time 0.1173/2.264, allocations: 72.83 MB / 1.087 GB, free: 21.36 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/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