Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001185/0.001185, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 51.92 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1231, allocations: 46.62 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2976/0.4207, allocations: 81.45 MB / 408 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04656/0.4674, allocations: 16.63 MB / 424.7 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02415/0.4916, allocations: 371.8 kB / 425 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01134/0.503, allocations: 6.305 MB / 431.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009544/0.5126, allocations: 2.704 MB / 434 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005285/0.5179, allocations: 2.184 MB / 436.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01533/0.5333, allocations: 12.68 MB / 448.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.5442, allocations: 8.29 MB / 457.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006002/0.5503, allocations: 2.854 MB / 460.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007142/0.5574, allocations: 4.456 MB / 464.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002035/0.5595, allocations: 500 kB / 465 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004557/0.5641, allocations: 1.763 MB / 466.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004614/0.5687, allocations: 3.655 MB / 470.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006888/0.5756, allocations: 3.923 MB / 474.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01467/0.5903, allocations: 12.77 MB / 487.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.5904, allocations: 0 / 487.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5904, allocations: 0 / 487.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004795/0.5909, allocations: 4 kB / 487.1 MB, free: 5.426 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02755/0.6185, allocations: 8.934 MB / 496.1 MB, free: 12.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.324e-05/0.6185, allocations: 12.03 kB / 496.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04317/0.6617, allocations: 4.851 MB / 0.4892 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02072/0.6825, allocations: 6.572 MB / 0.4956 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005727/0.6831, allocations: 435.7 kB / 0.496 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003815/0.687, allocations: 0.5859 MB / 0.4966 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04723/0.7342, allocations: 17.06 MB / 0.5132 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000645/0.7349, allocations: 79.27 kB / 0.5133 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003285/0.7382, allocations: 271.8 kB / 0.5136 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005267/0.7435, allocations: 2.654 MB / 0.5162 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03573/0.7793, allocations: 14.79 MB / 0.5306 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4089/1.188, allocations: 64.63 MB / 0.5937 GB, free: 119.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02158/1.21, allocations: 8.78 MB / 0.6023 GB, free: 112.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005949/1.216, allocations: 5.061 MB / 0.6072 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02493/1.241, allocations: 18.64 MB / 0.6255 GB, free: 88.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/1.241, allocations: 64.56 kB / 0.6255 GB, free: 88.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.302e-06/1.241, allocations: 0 / 0.6255 GB, free: 88.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2244/1.465, allocations: 74.07 MB / 0.6978 GB, free: 14.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.353e-05/1.466, allocations: 372.6 kB / 0.6982 GB, free: 14.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007211/1.473, allocations: 6.423 MB / 0.7045 GB, free: 7.895 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000959/1.474, allocations: 85.69 kB / 0.7046 GB, free: 7.805 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/1.476, allocations: 4.757 MB / 0.7092 GB, free: 2.984 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001535/1.478, allocations: 1.38 MB / 0.7105 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2041/1.682, allocations: 1.974 MB / 0.7125 GB, free: 153.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/1.682, allocations: 306.2 kB / 0.7128 GB, free: 152.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009627/1.691, allocations: 5.992 MB / 0.7186 GB, free: 151.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01414/1.706, allocations: 11.03 MB / 0.7294 GB, free: 143 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01837/1.724, allocations: 17.96 MB / 0.7469 GB, free: 130.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002007/1.724, allocations: 47.09 kB / 0.747 GB, free: 130.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04438/1.769, allocations: 23.34 MB / 0.7698 GB, free: 114.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/1.769, allocations: 80 kB / 0.7698 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/1.769, allocations: 172.9 kB / 0.77 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03082/1.8, allocations: 7.446 MB / 0.7773 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/1.812, allocations: 2.187 MB / 0.7794 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05602/1.868, allocations: 35.57 MB / 0.8141 GB, free: 68.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009424/1.878, allocations: 0.7483 MB / 0.8149 GB, free: 68.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002218/1.88, allocations: 0.5234 MB / 0.8154 GB, free: 67.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007871/1.888, allocations: 3.441 MB / 0.8187 GB, free: 64.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002126/1.89, allocations: 0.5723 MB / 0.8193 GB, free: 64.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03291/1.923, allocations: 16.96 MB / 0.8359 GB, free: 47.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.084e-05/1.923, allocations: 58.45 kB / 0.8359 GB, free: 46.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-05/1.923, allocations: 20 kB / 0.8359 GB, free: 46.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/1.923, allocations: 15.94 kB / 0.836 GB, free: 46.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05865/1.982, allocations: 32.17 MB / 0.8674 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.468e-05/1.982, allocations: 4 kB / 0.8674 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/1.986, allocations: 0.6045 MB / 0.868 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1965/2.182, allocations: 7.11 MB / 0.8749 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00112/2.183, allocations: 62.12 kB / 0.875 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04032/2.224, allocations: 33.84 MB / 0.908 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/2.224, allocations: 10.09 kB / 0.908 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03619/2.26, allocations: 24.6 MB / 0.932 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003609/2.263, allocations: 1.659 MB / 0.9337 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002045/2.265, allocations: 62.44 kB / 0.9337 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004355/2.27, allocations: 455 kB / 0.9342 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001156/2.271, allocations: 242.6 kB / 0.9344 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003634/2.271, allocations: 99.81 kB / 0.9345 GB, free: 103.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00576/2.277, allocations: 4.08 MB / 0.9385 GB, free: 99.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/2.277, allocations: 0 / 0.9385 GB, free: 99.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01058/2.288, allocations: 2.293 MB / 0.9407 GB, free: 97.07 MB / 446.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001134/2.289, allocations: 281.1 kB / 0.941 GB, free: 96.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01978/2.309, allocations: 14.86 MB / 0.9555 GB, free: 82.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/2.309, allocations: 0 / 0.9555 GB, free: 82.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009085/2.318, allocations: 6.703 MB / 0.962 GB, free: 75.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007322/2.325, allocations: 0.8392 MB / 0.9629 GB, free: 74.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03894/2.364, allocations: 23.59 MB / 0.9859 GB, free: 50.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009646/2.374, allocations: 5.287 MB / 0.9911 GB, free: 45.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008906/2.383, allocations: 3.016 MB / 0.994 GB, free: 42.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002423/2.385, allocations: 383.4 kB / 0.9944 GB, free: 42.16 MB / 446.1 MB Notification: Performance of SimCode: time 2.274e-06/2.385, allocations: 0 / 0.9944 GB, free: 42.16 MB / 446.1 MB Notification: Performance of Templates: time 0.3378/2.723, allocations: 108.8 MB / 1.101 GB, free: 85.85 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches