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.001597/0.001597, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001433/0.001433, allocations: 187 kB / 19.34 MB, free: 3.641 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.47/1.47, allocations: 222.9 MB / 243 MB, free: 15.16 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.2167/0.2167, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.55 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1405, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.03131/0.1718, allocations: 16 MB / 486.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01688/0.1888, allocations: 5.444 MB / 492.2 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003551/0.1924, allocations: 111.6 kB / 492.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009449/0.2018, allocations: 5.136 MB / 497.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006874/0.2088, allocations: 2.614 MB / 0.4883 GB, free: 256 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.2119, allocations: 1.396 MB / 0.4897 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01123/0.2231, allocations: 8.09 MB / 0.4976 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2774/0.5006, allocations: 7.045 MB / 0.5044 GB, free: 17.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006384/0.507, allocations: 2.769 MB / 0.5071 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008591/0.5156, allocations: 3.74 MB / 0.5108 GB, free: 17.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004066/0.5197, allocations: 0.6357 MB / 0.5114 GB, free: 17.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007659/0.5274, allocations: 1.789 MB / 0.5132 GB, free: 17.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008435/0.5359, allocations: 3.332 MB / 0.5164 GB, free: 16.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01307/0.549, allocations: 3.704 MB / 0.52 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02162/0.5706, allocations: 11.98 MB / 0.5317 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.5707, allocations: 0 / 0.5317 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5707, allocations: 0 / 0.5317 GB, free: 10.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005738/0.5713, allocations: 3.562 kB / 0.5317 GB, free: 10.86 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02967/0.601, allocations: 7.912 MB / 0.5395 GB, free: 5.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.601, allocations: 6.469 kB / 0.5395 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.6168, allocations: 3.054 MB / 0.5425 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01498/0.6319, allocations: 5.119 MB / 0.5475 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004557/0.6324, allocations: 382.2 kB / 0.5478 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003201/0.6356, allocations: 0.5129 MB / 0.5483 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/0.6785, allocations: 15.51 MB / 0.5635 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004419/0.679, allocations: 61.59 kB / 0.5635 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001995/0.681, allocations: 238.9 kB / 0.5638 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004236/0.6852, allocations: 2.546 MB / 0.5662 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0304/0.7157, allocations: 13.1 MB / 0.579 GB, free: 0.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09768/0.8134, allocations: 57.31 MB / 0.635 GB, free: 6.531 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01788/0.8313, allocations: 6.386 MB / 0.6412 GB, free: 28 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005673/0.837, allocations: 3.441 MB / 0.6446 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01883/0.8559, allocations: 11.57 MB / 0.6559 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.856, allocations: 63.45 kB / 0.656 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 5.2e-06/0.856, allocations: 0 / 0.656 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of matching and sorting (n=343): time 0.1327/0.9887, allocations: 39.52 MB / 0.6946 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001713/0.989, allocations: 243.9 kB / 0.6948 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009524/0.9985, allocations: 5.707 MB / 0.7004 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/0.9996, allocations: 77.7 kB / 0.7004 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.2536/1.253, allocations: 4.336 MB / 0.7047 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.255, allocations: 1.263 MB / 0.7059 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002995/1.258, allocations: 1.751 MB / 0.7076 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.349e-05/1.258, allocations: 302.3 kB / 0.7079 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006236/1.264, allocations: 4.088 MB / 0.7119 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0103/1.275, allocations: 8.673 MB / 0.7204 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/1.294, allocations: 13.56 MB / 0.7336 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002576/1.294, allocations: 41.97 kB / 0.7336 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03443/1.329, allocations: 16.38 MB / 0.7496 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001937/1.329, allocations: 75.53 kB / 0.7497 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003083/1.329, allocations: 158.2 kB / 0.7499 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/1.341, allocations: 4.281 MB / 0.754 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005782/1.347, allocations: 1.898 MB / 0.7559 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02503/1.372, allocations: 21.55 MB / 0.7769 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008069/1.38, allocations: 0.5039 MB / 0.7774 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001953/1.382, allocations: 489.4 kB / 0.7779 GB, free: 131.6 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.005342/1.387, allocations: 3.118 MB / 0.7809 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/1.389, allocations: 0.5207 MB / 0.7815 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01774/1.406, allocations: 10.11 MB / 0.7913 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.008e-05/1.406, allocations: 32 kB / 0.7914 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.666e-05/1.407, allocations: 23.98 kB / 0.7914 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.874e-05/1.407, allocations: 11.95 kB / 0.7914 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03362/1.44, allocations: 20.06 MB / 0.811 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.99e-05/1.44, allocations: 8 kB / 0.811 GB, free: 97.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002199/1.442, allocations: 0.4914 MB / 0.8115 GB, free: 97.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01124/1.454, allocations: 3.841 MB / 0.8152 GB, free: 93.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000752/1.455, allocations: 61.97 kB / 0.8153 GB, free: 93.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02273/1.477, allocations: 19.11 MB / 0.8339 GB, free: 73.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/1.477, allocations: 11.94 kB / 0.8339 GB, free: 73.88 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02372/1.501, allocations: 14.9 MB / 0.8485 GB, free: 58.77 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/1.503, allocations: 0.5773 MB / 0.8491 GB, free: 58.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001604/1.505, allocations: 60 kB / 0.8491 GB, free: 58.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00314/1.508, allocations: 227.7 kB / 0.8493 GB, free: 57.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007411/1.509, allocations: 222.3 kB / 0.8495 GB, free: 57.67 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/1.509, allocations: 103.9 kB / 0.8496 GB, free: 57.57 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004723/1.514, allocations: 3.604 MB / 0.8532 GB, free: 53.99 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/1.514, allocations: 7.938 kB / 0.8532 GB, free: 53.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008745/1.522, allocations: 1.789 MB / 0.8549 GB, free: 52.21 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.0009456/1.523, allocations: 254.6 kB / 0.8552 GB, free: 51.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01405/1.537, allocations: 9.842 MB / 0.8648 GB, free: 42.12 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-05/1.537, allocations: 4 kB / 0.8648 GB, free: 42.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005529/1.543, allocations: 3.792 MB / 0.8685 GB, free: 38.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006837/1.55, allocations: 0.7297 MB / 0.8692 GB, free: 37.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02879/1.579, allocations: 15.87 MB / 0.8847 GB, free: 21.61 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007926/1.587, allocations: 4.831 MB / 0.8894 GB, free: 16.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006634/1.593, allocations: 2.573 MB / 0.8919 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/1.595, allocations: 351.4 kB / 0.8923 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/1.595, allocations: 0 / 0.8923 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of Templates: time 0.369/1.964, allocations: 71.96 MB / 0.9625 GB, free: 129.5 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 -s cvode -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