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.001399/0.001399, allocations: 99.95 kB / 16.94 MB, free: 5.98 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.001751/0.001751, allocations: 180.5 kB / 17.82 MB, free: 5.652 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.546/1.546, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004516/0.0004519, allocations: 12 kB / 280.7 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 47.59 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2731/0.3795, allocations: 69.64 MB / 398 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04605/0.4256, allocations: 16.59 MB / 414.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02306/0.4487, allocations: 371 kB / 414.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01507/0.4639, allocations: 3.533 MB / 418.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04391/0.5078, allocations: 9.94 MB / 428.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008343/0.5162, allocations: 1.287 MB / 429.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07666/0.5929, allocations: 51.94 MB / 481.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01559/0.6086, allocations: 10.16 MB / 491.8 MB, free: 1.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00505/0.6137, allocations: 1.986 MB / 493.8 MB, free: 15.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004595/0.6183, allocations: 2.512 MB / 496.3 MB, free: 13.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00135/0.6197, allocations: 248 kB / 496.5 MB, free: 13.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003729/0.6234, allocations: 1.264 MB / 497.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004212/0.6277, allocations: 2.981 MB / 0.489 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002605/0.6303, allocations: 1.466 MB / 0.4905 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.6445, allocations: 11 MB / 0.5012 GB, free: 12.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.6445, allocations: 0 / 0.5012 GB, free: 12.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.6446, allocations: 0 / 0.5012 GB, free: 12.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004652/0.645, allocations: 0 / 0.5012 GB, free: 12.46 MB / 414.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.02429/0.6693, allocations: 8.226 MB / 0.5092 GB, free: 4.152 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.6694, allocations: 8.031 kB / 0.5093 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3391/1.009, allocations: 27.28 MB / 0.5359 GB, free: 8.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02092/1.03, allocations: 7.559 MB / 0.5433 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00048/1.03, allocations: 431.3 kB / 0.5437 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/1.033, allocations: 0.5817 MB / 0.5443 GB, free: 188 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4104/1.443, allocations: 17.1 MB / 0.561 GB, free: 159.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002986/1.444, allocations: 81.56 kB / 0.561 GB, free: 159.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/1.445, allocations: 265.8 kB / 0.5613 GB, free: 159.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0042/1.449, allocations: 2.662 MB / 0.5639 GB, free: 158.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/1.477, allocations: 14.67 MB / 0.5782 GB, free: 145.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07746/1.555, allocations: 64.35 MB / 0.6411 GB, free: 80.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.576, allocations: 8.847 MB / 0.6497 GB, free: 71.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02598/1.602, allocations: 18.3 MB / 0.6676 GB, free: 53.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/1.602, allocations: 72.5 kB / 0.6676 GB, free: 53.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.731e-06/1.602, allocations: 3.938 kB / 0.6676 GB, free: 53.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4549/2.057, allocations: 74.97 MB / 0.7409 GB, free: 145.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/2.057, allocations: 378 kB / 0.7412 GB, free: 145.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008961/2.066, allocations: 6.946 MB / 0.748 GB, free: 142.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001188/2.067, allocations: 86.22 kB / 0.7481 GB, free: 142.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002743/2.07, allocations: 4.852 MB / 0.7528 GB, free: 139 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/2.072, allocations: 1.378 MB / 0.7542 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004889/2.072, allocations: 176 kB / 0.7543 GB, free: 137.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003515/2.073, allocations: 0.6823 MB / 0.755 GB, free: 137.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006492/2.079, allocations: 5.622 MB / 0.7605 GB, free: 135.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008531/2.088, allocations: 10.55 MB / 0.7708 GB, free: 124.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008939/2.097, allocations: 7.531 MB / 0.7782 GB, free: 117.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-05/2.097, allocations: 54.3 kB / 0.7782 GB, free: 117.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03977/2.137, allocations: 21.91 MB / 0.7996 GB, free: 95.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000174/2.137, allocations: 80 kB / 0.7997 GB, free: 95.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002385/2.137, allocations: 168 kB / 0.7998 GB, free: 95.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02004/2.157, allocations: 6.918 MB / 0.8066 GB, free: 88.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00716/2.164, allocations: 2.078 MB / 0.8086 GB, free: 86.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03938/2.204, allocations: 35.21 MB / 0.843 GB, free: 50.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008818/2.212, allocations: 0.726 MB / 0.8437 GB, free: 49.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/2.214, allocations: 0.5056 MB / 0.8442 GB, free: 49.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * 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%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006597/2.221, allocations: 3.438 MB / 0.8476 GB, free: 45.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.222, allocations: 0.5823 MB / 0.8481 GB, free: 45.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02865/2.251, allocations: 16.1 MB / 0.8639 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001367/2.251, allocations: 45.25 kB / 0.8639 GB, free: 29.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.106e-05/2.251, allocations: 19.94 kB / 0.8639 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001191/2.251, allocations: 15.94 kB / 0.8639 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2665/2.518, allocations: 31.47 MB / 0.8947 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.477e-05/2.518, allocations: 9.094 kB / 0.8947 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003377/2.521, allocations: 0.5949 MB / 0.8953 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/2.54, allocations: 6.577 MB / 0.9017 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001086/2.541, allocations: 59.95 kB / 0.9017 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03827/2.58, allocations: 33.48 MB / 0.9344 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/2.58, allocations: 1.078 kB / 0.9344 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03614/2.616, allocations: 23.94 MB / 0.9578 GB, free: 84.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005727/2.622, allocations: 1.658 MB / 0.9594 GB, free: 83.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002072/2.624, allocations: 61.48 kB / 0.9595 GB, free: 83.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005143/2.629, allocations: 436.6 kB / 0.9599 GB, free: 82.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001054/2.63, allocations: 250.6 kB / 0.9601 GB, free: 82.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003576/2.63, allocations: 93.41 kB / 0.9602 GB, free: 82.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006555/2.637, allocations: 4.515 MB / 0.9646 GB, free: 78.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/2.637, allocations: 3.781 kB / 0.9646 GB, free: 78.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01205/2.649, allocations: 2.223 MB / 0.9668 GB, free: 75.9 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 (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.001796/2.651, allocations: 277.8 kB / 0.9671 GB, free: 75.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01967/2.671, allocations: 14.2 MB / 0.9809 GB, free: 61.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.671, allocations: 7.812 kB / 0.981 GB, free: 61.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009372/2.68, allocations: 6.545 MB / 0.9873 GB, free: 54.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006664/2.687, allocations: 0.8374 MB / 0.9882 GB, free: 54.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03383/2.721, allocations: 22.44 MB / 1.01 GB, free: 31.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005487/2.726, allocations: 5.435 MB / 1.015 GB, free: 26.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007056/2.733, allocations: 3.044 MB / 1.018 GB, free: 23.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/2.735, allocations: 395.4 kB / 1.019 GB, free: 22.79 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/2.735, allocations: 0 / 1.019 GB, free: 22.79 MB / 446.1 MB Notification: Performance of Templates: time 0.3329/3.068, allocations: 103.6 MB / 1.12 GB, free: 73.41 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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