Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 221.5 MB / 230.3 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 95.61 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.978e-05/1.98e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 50.41 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3903/0.5011, allocations: 103.2 MB / 490.7 MB, free: 7.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5015, allocations: 91.94 kB / 490.8 MB, free: 7.516 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5773/1.079, allocations: 138.7 MB / 0.6147 GB, free: 87.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.079, allocations: 0 / 0.6147 GB, free: 87.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004508/1.079, allocations: 150.2 kB / 0.6149 GB, free: 87.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02469/1.104, allocations: 7.459 MB / 0.6222 GB, free: 83.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/1.104, allocations: 11.16 kB / 0.6222 GB, free: 83.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04277/1.147, allocations: 11.73 MB / 0.6336 GB, free: 71.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02328/1.17, allocations: 9.879 MB / 0.6433 GB, free: 61.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/1.171, allocations: 228 kB / 0.6435 GB, free: 61.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004009/1.175, allocations: 431.7 kB / 0.6439 GB, free: 61.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01782/1.192, allocations: 9.856 MB / 0.6535 GB, free: 51.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03276/1.225, allocations: 14.62 MB / 0.6678 GB, free: 35.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004244/1.226, allocations: 103.1 kB / 0.6679 GB, free: 35.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/1.227, allocations: 43.94 kB / 0.6679 GB, free: 35.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001675/1.229, allocations: 1.456 MB / 0.6694 GB, free: 33.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3887/1.618, allocations: 71.24 MB / 0.7389 GB, free: 58.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00824/1.626, allocations: 6.012 MB / 0.7448 GB, free: 57.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00613/1.632, allocations: 4.61 MB / 0.7493 GB, free: 57.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/1.633, allocations: 0.8684 MB / 0.7502 GB, free: 56.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.633, allocations: 64.69 kB / 0.7502 GB, free: 56.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=292): time 5.71e-06/1.633, allocations: 1 kB / 0.7502 GB, free: 56.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=385): time 0.1252/1.758, allocations: 53.21 MB / 0.8022 GB, free: 42.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.758, allocations: 371.4 kB / 0.8025 GB, free: 42.36 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008968/1.767, allocations: 4.803 MB / 0.8072 GB, free: 38.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009837/1.768, allocations: 25.7 kB / 0.8072 GB, free: 38.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00302/1.772, allocations: 4.895 MB / 0.812 GB, free: 33.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001744/1.773, allocations: 1.363 MB / 0.8134 GB, free: 32.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006185/1.774, allocations: 0 / 0.8134 GB, free: 32.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004056/1.774, allocations: 0.6999 MB / 0.814 GB, free: 32.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005532/1.78, allocations: 5.321 MB / 0.8192 GB, free: 27.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008721/1.789, allocations: 10.37 MB / 0.8294 GB, free: 15.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009464/1.798, allocations: 7.314 MB / 0.8365 GB, free: 9.137 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000147/1.798, allocations: 48 kB / 0.8366 GB, free: 9.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.05011/1.848, allocations: 20.99 MB / 0.8571 GB, free: 10.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003132/1.849, allocations: 88.78 kB / 0.8571 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004296/1.849, allocations: 176.8 kB / 0.8573 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02123/1.87, allocations: 6.517 MB / 0.8637 GB, free: 4.973 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008424/1.879, allocations: 2.099 MB / 0.8657 GB, free: 2.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04742/1.926, allocations: 30.51 MB / 0.8955 GB, free: 4.031 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009764/1.936, allocations: 0.53 MB / 0.896 GB, free: 3.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002677/1.939, allocations: 0.5272 MB / 0.8965 GB, free: 2.977 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1053): * Single equations (assignments): 1046 * 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%) 69,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.003976/1.943, allocations: 0.552 MB / 0.8971 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002425/1.945, allocations: 0.5515 MB / 0.8976 GB, free: 1.855 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3496/2.295, allocations: 15.18 MB / 0.9124 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001813/2.295, allocations: 52.39 kB / 0.9125 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.985e-05/2.295, allocations: 16.66 kB / 0.9125 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001236/2.295, allocations: 19.53 kB / 0.9125 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0732/2.369, allocations: 29.4 MB / 0.9412 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.674e-05/2.369, allocations: 3.219 kB / 0.9412 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/2.372, allocations: 0.5947 MB / 0.9418 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0178/2.39, allocations: 6.106 MB / 0.9478 GB, free: 122.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001073/2.391, allocations: 16.28 kB / 0.9478 GB, free: 122.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03523/2.426, allocations: 28.58 MB / 0.9757 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/2.426, allocations: 9.469 kB / 0.9757 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03532/2.462, allocations: 22.91 MB / 0.9981 GB, free: 93.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/2.464, allocations: 0.5642 MB / 0.9986 GB, free: 93.01 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/2.465, allocations: 4 kB / 0.9986 GB, free: 93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003883/2.469, allocations: 352.6 kB / 0.999 GB, free: 92.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009134/2.47, allocations: 260.2 kB / 0.9992 GB, free: 92.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003298/2.47, allocations: 92.62 kB / 0.9993 GB, free: 92.58 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005427/2.476, allocations: 3.288 MB / 1.003 GB, free: 89.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.476, allocations: 0 / 1.003 GB, free: 89.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01039/2.486, allocations: 1.925 MB / 1.004 GB, free: 87.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 247 * 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.001119/2.487, allocations: 232.6 kB / 1.005 GB, free: 87.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01658/2.504, allocations: 13.41 MB / 1.018 GB, free: 75.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/2.504, allocations: 0 / 1.018 GB, free: 75.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008006/2.512, allocations: 6.186 MB / 1.024 GB, free: 69.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004397/2.516, allocations: 0.7177 MB / 1.024 GB, free: 69.22 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0316/2.548, allocations: 16.58 MB / 1.041 GB, free: 52.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009285/2.557, allocations: 5.416 MB / 1.046 GB, free: 47.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009787/2.567, allocations: 3.109 MB / 1.049 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002176/2.569, allocations: 375.4 kB / 1.049 GB, free: 43.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/2.569, allocations: 0 / 1.049 GB, free: 43.79 MB / 490.7 MB Notification: Performance of Templates: time 0.3976/2.967, allocations: 92.29 MB / 1.139 GB, free: 108.5 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches