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.001255/0.001256, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001016/0.001016, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.359/1.359, allocations: 222.9 MB / 243 MB, free: 15.08 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.2058/0.2058, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002554/0.002554, allocations: 65.44 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1564, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01593/0.1724, allocations: 15.99 MB / 486.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.1849, allocations: 5.452 MB / 492.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.1886, allocations: 111.7 kB / 492.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009291/0.1979, allocations: 5.14 MB / 497.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007682/0.2056, allocations: 2.61 MB / 0.4883 GB, free: 224 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003666/0.2093, allocations: 1.396 MB / 0.4896 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01337/0.2227, allocations: 8.094 MB / 0.4976 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2472/0.47, allocations: 7.043 MB / 0.5044 GB, free: 17.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006121/0.4761, allocations: 2.763 MB / 0.5071 GB, free: 17.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008387/0.4846, allocations: 3.742 MB / 0.5108 GB, free: 16.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003929/0.4885, allocations: 0.6325 MB / 0.5114 GB, free: 16.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007244/0.4958, allocations: 1.79 MB / 0.5131 GB, free: 16.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007084/0.5029, allocations: 3.33 MB / 0.5164 GB, free: 16.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01009/0.5131, allocations: 3.711 MB / 0.52 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.5291, allocations: 11.99 MB / 0.5317 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.5291, allocations: 0 / 0.5317 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5291, allocations: 1.75 kB / 0.5317 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004924/0.5296, allocations: 0 / 0.5317 GB, free: 10.84 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.02031/0.55, allocations: 7.904 MB / 0.5395 GB, free: 5.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.55, allocations: 14.25 kB / 0.5395 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/0.5624, allocations: 3.045 MB / 0.5424 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.5733, allocations: 5.125 MB / 0.5474 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.5735, allocations: 381.3 kB / 0.5478 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001385/0.5749, allocations: 0.5151 MB / 0.5483 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02754/0.6024, allocations: 15.51 MB / 0.5635 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001693/0.6026, allocations: 64.84 kB / 0.5635 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005941/0.6033, allocations: 233.5 kB / 0.5637 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003568/0.6068, allocations: 2.549 MB / 0.5662 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/0.6333, allocations: 13.11 MB / 0.579 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07866/0.712, allocations: 57.31 MB / 0.635 GB, free: 6.508 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01801/0.73, allocations: 6.382 MB / 0.6412 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004893/0.735, allocations: 3.442 MB / 0.6446 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02363/0.7586, allocations: 11.57 MB / 0.6559 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.092e-05/0.7587, allocations: 60.5 kB / 0.6559 GB, free: 0.543 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 6.422e-06/0.7588, allocations: 0 / 0.6559 GB, free: 0.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=343): time 0.1422/0.9009, allocations: 39.53 MB / 0.6945 GB, free: 9.062 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.9011, allocations: 247.9 kB / 0.6948 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/0.9129, allocations: 5.711 MB / 0.7004 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008651/0.9138, allocations: 77.7 kB / 0.7004 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.2079/1.122, allocations: 4.34 MB / 0.7047 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/1.123, allocations: 1.261 MB / 0.7059 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003009/1.126, allocations: 1.752 MB / 0.7076 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/1.127, allocations: 301.9 kB / 0.7079 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006538/1.133, allocations: 4.086 MB / 0.7119 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/1.146, allocations: 8.67 MB / 0.7204 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01879/1.165, allocations: 13.56 MB / 0.7336 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002887/1.165, allocations: 46.56 kB / 0.7336 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03153/1.196, allocations: 16.38 MB / 0.7496 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.197, allocations: 72.91 kB / 0.7497 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/1.197, allocations: 161.8 kB / 0.7499 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01203/1.209, allocations: 4.278 MB / 0.754 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006054/1.215, allocations: 1.901 MB / 0.7559 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02685/1.242, allocations: 21.54 MB / 0.7769 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009909/1.252, allocations: 0.5088 MB / 0.7774 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001953/1.254, allocations: 480 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.008142/1.262, allocations: 3.125 MB / 0.7809 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/1.263, allocations: 0.5245 MB / 0.7814 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02393/1.287, allocations: 10.1 MB / 0.7913 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.369e-05/1.287, allocations: 39.61 kB / 0.7913 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-05/1.287, allocations: 20 kB / 0.7914 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.354e-05/1.287, allocations: 15.94 kB / 0.7914 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03897/1.326, allocations: 20.05 MB / 0.811 GB, free: 97.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.369e-05/1.326, allocations: 7.938 kB / 0.811 GB, free: 97.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/1.329, allocations: 0.4915 MB / 0.8115 GB, free: 97.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01106/1.34, allocations: 3.841 MB / 0.8152 GB, free: 93.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006832/1.34, allocations: 67.98 kB / 0.8153 GB, free: 93.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02255/1.363, allocations: 19.11 MB / 0.8339 GB, free: 73.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.363, allocations: 8 kB / 0.8339 GB, free: 73.84 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02317/1.386, allocations: 14.89 MB / 0.8485 GB, free: 58.74 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.388, allocations: 0.5723 MB / 0.849 GB, free: 58.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001545/1.39, allocations: 64 kB / 0.8491 GB, free: 58.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/1.393, allocations: 231.7 kB / 0.8493 GB, free: 57.85 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008416/1.394, allocations: 233.6 kB / 0.8495 GB, free: 57.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002648/1.394, allocations: 88 kB / 0.8496 GB, free: 57.54 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004978/1.399, allocations: 3.604 MB / 0.8532 GB, free: 53.96 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/1.399, allocations: 4 kB / 0.8532 GB, free: 53.96 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007386/1.407, allocations: 1.785 MB / 0.8549 GB, free: 52.18 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.0008301/1.408, allocations: 268.1 kB / 0.8552 GB, free: 51.92 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0134/1.421, allocations: 9.839 MB / 0.8648 GB, free: 42.08 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.661e-05/1.421, allocations: 0 / 0.8648 GB, free: 42.08 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005251/1.426, allocations: 3.792 MB / 0.8685 GB, free: 38.26 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006488/1.433, allocations: 0.721 MB / 0.8692 GB, free: 37.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/1.457, allocations: 15.88 MB / 0.8847 GB, free: 21.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005398/1.462, allocations: 4.825 MB / 0.8894 GB, free: 16.71 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005026/1.467, allocations: 2.581 MB / 0.8919 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.468, allocations: 347.4 kB / 0.8922 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of SimCode: time 5.71e-07/1.468, allocations: 0 / 0.8922 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of Templates: time 0.3108/1.779, allocations: 71.97 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 gbode -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