Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009906/0.0009905, allocations: 180.8 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008024/0.0008023, allocations: 101.5 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003345, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2521, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1286/0.3807, allocations: 103.1 MB / 478.8 MB, free: 9.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.3811, allocations: 99.94 kB / 478.9 MB, free: 9.383 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4558/0.8369, allocations: 137.6 MB / 0.602 GB, free: 13.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.8369, allocations: 0 / 0.602 GB, free: 13.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006354/0.8376, allocations: 144 kB / 0.6022 GB, free: 13.55 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.0241/0.8617, allocations: 7.84 MB / 0.6098 GB, free: 5.621 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.8618, allocations: 12.03 kB / 0.6098 GB, free: 5.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03352/0.8953, allocations: 8.438 MB / 0.6181 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02287/0.9182, allocations: 9.256 MB / 0.6271 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006473/0.9189, allocations: 0.5141 MB / 0.6276 GB, free: 3.297 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003541/0.9225, allocations: 0.7109 MB / 0.6283 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04405/0.9665, allocations: 17.2 MB / 0.6451 GB, free: 60 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.4053/1.372, allocations: 99.31 kB / 0.6452 GB, free: 62.23 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002853/1.375, allocations: 333.7 kB / 0.6455 GB, free: 62.23 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001808/1.377, allocations: 1.455 MB / 0.647 GB, free: 62.22 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/1.405, allocations: 14.26 MB / 0.6609 GB, free: 62.16 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08018/1.485, allocations: 73.19 MB / 0.7324 GB, free: 18.12 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02008/1.505, allocations: 8.607 MB / 0.7408 GB, free: 15.73 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005365/1.511, allocations: 4.761 MB / 0.7454 GB, free: 13.67 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02484/1.536, allocations: 17.61 MB / 0.7626 GB, free: 1.719 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/1.536, allocations: 62.53 kB / 0.7627 GB, free: 1.652 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 6.642e-06/1.536, allocations: 3.906 kB / 0.7627 GB, free: 1.652 MB / 410.8 MB Notification: Performance of matching and sorting (n=374): time 0.4441/1.98, allocations: 69.7 MB / 0.8307 GB, free: 107.1 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/1.98, allocations: 378.3 kB / 0.8311 GB, free: 106.7 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009741/1.99, allocations: 6.255 MB / 0.8372 GB, free: 106.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009682/1.991, allocations: 80.67 kB / 0.8373 GB, free: 106.2 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003372/1.994, allocations: 4.887 MB / 0.8421 GB, free: 104 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/1.996, allocations: 1.37 MB / 0.8434 GB, free: 103.2 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008228/1.997, allocations: 179.5 kB / 0.8436 GB, free: 103.2 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005835/1.998, allocations: 0.6857 MB / 0.8442 GB, free: 102.9 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008064/2.006, allocations: 5.493 MB / 0.8496 GB, free: 102.9 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01305/2.019, allocations: 10.5 MB / 0.8599 GB, free: 96.55 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01906/2.038, allocations: 17.1 MB / 0.8766 GB, free: 86.15 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002867/2.038, allocations: 47.75 kB / 0.8766 GB, free: 86.15 MB / 458.8 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.04288/2.081, allocations: 21.37 MB / 0.8975 GB, free: 78.95 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/2.081, allocations: 79.06 kB / 0.8975 GB, free: 78.95 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002289/2.081, allocations: 176.8 kB / 0.8977 GB, free: 78.94 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01808/2.1, allocations: 6.512 MB / 0.9041 GB, free: 77.92 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0076/2.107, allocations: 2.048 MB / 0.9061 GB, free: 77.69 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04015/2.147, allocations: 32.42 MB / 0.9377 GB, free: 51.22 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009142/2.157, allocations: 0.6974 MB / 0.9384 GB, free: 50.69 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002263/2.159, allocations: 0.5127 MB / 0.9389 GB, free: 50.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.008918/2.168, allocations: 3.432 MB / 0.9423 GB, free: 47.17 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001763/2.17, allocations: 0.593 MB / 0.9428 GB, free: 46.57 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03045/2.2, allocations: 15.49 MB / 0.958 GB, free: 34.22 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.552e-05/2.2, allocations: 46.81 kB / 0.958 GB, free: 34.18 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.635e-05/2.2, allocations: 20 kB / 0.958 GB, free: 34.16 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.935e-05/2.2, allocations: 19.94 kB / 0.9581 GB, free: 34.14 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.264/2.464, allocations: 30.49 MB / 0.9878 GB, free: 94.57 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-05/2.464, allocations: 3.75 kB / 0.9878 GB, free: 94.57 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002952/2.467, allocations: 0.579 MB / 0.9884 GB, free: 94.57 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01698/2.484, allocations: 6.155 MB / 0.9944 GB, free: 94.54 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001069/2.486, allocations: 61.94 kB / 0.9945 GB, free: 94.54 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04264/2.528, allocations: 30.78 MB / 1.025 GB, free: 90.59 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/2.528, allocations: 2.781 kB / 1.025 GB, free: 90.59 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03985/2.568, allocations: 22.73 MB / 1.047 GB, free: 82.92 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004797/2.573, allocations: 1.58 MB / 1.048 GB, free: 82.42 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/2.575, allocations: 64.2 kB / 1.048 GB, free: 82.38 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005146/2.581, allocations: 408.2 kB / 1.049 GB, free: 82.34 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001922/2.583, allocations: 254.2 kB / 1.049 GB, free: 82.3 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009055/2.583, allocations: 96.22 kB / 1.049 GB, free: 82.27 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009272/2.593, allocations: 3.95 MB / 1.053 GB, free: 80.96 MB / 458.8 MB Notification: Performance of sort global known variables: time 6.71e-07/2.593, allocations: 0 / 1.053 GB, free: 80.96 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01253/2.605, allocations: 2.173 MB / 1.055 GB, free: 80.75 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001812/2.607, allocations: 279.6 kB / 1.055 GB, free: 80.61 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02177/2.629, allocations: 13.9 MB / 1.069 GB, free: 73.36 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/2.629, allocations: 8.688 kB / 1.069 GB, free: 73.36 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01007/2.639, allocations: 6.355 MB / 1.075 GB, free: 67.84 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0106/2.65, allocations: 0.8899 MB / 1.076 GB, free: 67.11 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04185/2.692, allocations: 23.21 MB / 1.099 GB, free: 46.36 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/2.702, allocations: 5.301 MB / 1.104 GB, free: 42.36 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002553/2.704, allocations: 437.4 kB / 1.104 GB, free: 41.95 MB / 458.8 MB Notification: Performance of SimCode: time 1.142e-06/2.705, allocations: 0 / 1.104 GB, free: 41.95 MB / 458.8 MB Notification: Performance of Templates: time 0.4483/3.153, allocations: 207.5 MB / 1.307 GB, free: 14.89 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches