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.000982/0.0009822, allocations: 95.91 kB / 17.35 MB, free: 6.371 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.001362/0.001362, allocations: 179.3 kB / 18.26 MB, free: 5.52 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.462/1.462, allocations: 223.3 MB / 242.3 MB, free: 216 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.1944/0.1944, allocations: 44.25 MB / 337.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005556/0.0005556, allocations: 12.81 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1525, allocations: 61.93 MB / 472.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3491/0.5017, allocations: 66.72 MB / 0.5263 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03203/0.5338, allocations: 14.19 MB / 0.5402 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02136/0.5552, allocations: 305.6 kB / 0.5405 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00293/0.5581, allocations: 0.5934 MB / 0.5411 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008455/0.5666, allocations: 2.486 MB / 0.5435 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.5698, allocations: 1.272 MB / 0.5447 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01375/0.5835, allocations: 11.65 MB / 0.5561 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01419/0.5978, allocations: 9.555 MB / 0.5654 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004707/0.6025, allocations: 1.985 MB / 0.5674 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005855/0.6084, allocations: 3.392 MB / 0.5707 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00153/0.61, allocations: 240 kB / 0.5709 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004097/0.6141, allocations: 1.476 MB / 0.5724 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00385/0.618, allocations: 2.875 MB / 0.5752 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005312/0.6233, allocations: 3.183 MB / 0.5783 GB, free: 6.891 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01589/0.6392, allocations: 11.16 MB / 0.5892 GB, free: 11.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.6393, allocations: 0 / 0.5892 GB, free: 11.97 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.6393, allocations: 0 / 0.5892 GB, free: 11.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004418/0.6397, allocations: 4 kB / 0.5892 GB, free: 11.97 MB / 430.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.01638/0.6561, allocations: 6.521 MB / 0.5955 GB, free: 5.406 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.6562, allocations: 8.031 kB / 0.5956 GB, free: 5.398 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.6721, allocations: 3.112 MB / 0.5986 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01164/0.6838, allocations: 5.015 MB / 0.6035 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003585/0.6842, allocations: 376.8 kB / 0.6039 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/0.6863, allocations: 0.5115 MB / 0.6044 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03369/0.72, allocations: 15.56 MB / 0.6196 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002222/0.7202, allocations: 63.44 kB / 0.6196 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007432/0.721, allocations: 234 kB / 0.6198 GB, free: 11.87 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004085/0.7251, allocations: 2.55 MB / 0.6223 GB, free: 9.332 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02942/0.7545, allocations: 13.15 MB / 0.6352 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08397/0.8385, allocations: 57.56 MB / 0.6914 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01946/0.858, allocations: 6.414 MB / 0.6976 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005671/0.8638, allocations: 3.448 MB / 0.701 GB, free: 7.188 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3067/1.17, allocations: 11.56 MB / 0.7123 GB, free: 186.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/1.171, allocations: 62.56 kB / 0.7124 GB, free: 186 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 4.799e-06/1.171, allocations: 0 / 0.7124 GB, free: 186 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1451/1.316, allocations: 39.6 MB / 0.751 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.316, allocations: 247.9 kB / 0.7513 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/1.329, allocations: 5.703 MB / 0.7568 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001154/1.33, allocations: 78.48 kB / 0.7569 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003678/1.334, allocations: 4.352 MB / 0.7612 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002267/1.336, allocations: 1.257 MB / 0.7624 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002422/1.338, allocations: 0.758 MB / 0.7631 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.618e-05/1.338, allocations: 301.1 kB / 0.7634 GB, free: 154 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009011/1.347, allocations: 4.085 MB / 0.7674 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0113/1.359, allocations: 8.671 MB / 0.7759 GB, free: 139 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01998/1.379, allocations: 13.56 MB / 0.7891 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001986/1.379, allocations: 44 kB / 0.7892 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03419/1.413, allocations: 16.39 MB / 0.8052 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/1.414, allocations: 72 kB / 0.8052 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/1.414, allocations: 160.6 kB / 0.8054 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0135/1.427, allocations: 4.288 MB / 0.8096 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006809/1.434, allocations: 1.895 MB / 0.8114 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02765/1.462, allocations: 20.17 MB / 0.8311 GB, free: 80.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007528/1.469, allocations: 0.5128 MB / 0.8316 GB, free: 79.54 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/1.471, allocations: 483.9 kB / 0.8321 GB, free: 79.07 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.005998/1.477, allocations: 3.131 MB / 0.8351 GB, free: 75.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/1.478, allocations: 0.5168 MB / 0.8356 GB, free: 75.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02012/1.498, allocations: 10.11 MB / 0.8455 GB, free: 65.23 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.255e-05/1.498, allocations: 36 kB / 0.8455 GB, free: 65.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.922e-05/1.498, allocations: 12 kB / 0.8456 GB, free: 65.18 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.09e-05/1.499, allocations: 19.94 kB / 0.8456 GB, free: 65.16 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04103/1.54, allocations: 20.15 MB / 0.8652 GB, free: 44.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.679e-05/1.54, allocations: 8 kB / 0.8653 GB, free: 44.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.542, allocations: 0.4954 MB / 0.8657 GB, free: 44.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0118/1.554, allocations: 3.849 MB / 0.8695 GB, free: 40.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006646/1.555, allocations: 72.27 kB / 0.8696 GB, free: 40.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0238/1.578, allocations: 17.8 MB / 0.8869 GB, free: 22.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.578, allocations: 16 kB / 0.887 GB, free: 22.46 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3121/1.891, allocations: 14.9 MB / 0.9015 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002762/1.893, allocations: 0.588 MB / 0.9021 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002141/1.896, allocations: 60.27 kB / 0.9021 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004158/1.9, allocations: 233.4 kB / 0.9024 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/1.901, allocations: 227.3 kB / 0.9026 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003139/1.901, allocations: 98.16 kB / 0.9027 GB, free: 166 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00874/1.91, allocations: 3.602 MB / 0.9062 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.11e-07/1.91, allocations: 0 / 0.9062 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01091/1.921, allocations: 1.784 MB / 0.9079 GB, free: 165.8 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.001312/1.922, allocations: 265.3 kB / 0.9082 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01929/1.942, allocations: 9.8 MB / 0.9178 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.525e-05/1.942, allocations: 1.969 kB / 0.9178 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006676/1.948, allocations: 3.792 MB / 0.9215 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01296/1.961, allocations: 0.6845 MB / 0.9221 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02866/1.99, allocations: 19.23 MB / 0.9409 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005745/1.996, allocations: 4.821 MB / 0.9456 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006435/2.002, allocations: 2.583 MB / 0.9481 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/2.004, allocations: 345.8 kB / 0.9485 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/2.004, allocations: 0 / 0.9485 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1166/2.12, allocations: 74.33 MB / 1.021 GB, free: 78.73 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