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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 90.11 kB / 16.3 MB, free: 6.133 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.001166/0.001166, allocations: 182.3 kB / 17.2 MB, free: 6.016 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.287/1.287, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003022, allocations: 7.938 kB / 300.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 50.42 MB / 351.1 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2466/0.3482, allocations: 69.32 MB / 420.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03628/0.3846, allocations: 16.5 MB / 437 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01419/0.3988, allocations: 363.1 kB / 437.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.4102, allocations: 3.522 MB / 440.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.029/0.4392, allocations: 9.892 MB / 450.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005091/0.4444, allocations: 1.291 MB / 452 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3213/0.7656, allocations: 95.49 MB / 0.5347 GB, free: 95.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01541/0.7811, allocations: 10.14 MB / 0.5446 GB, free: 95.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003796/0.7849, allocations: 1.972 MB / 0.5465 GB, free: 95.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003859/0.7888, allocations: 2.503 MB / 0.549 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.79, allocations: 247.1 kB / 0.5492 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002787/0.7928, allocations: 1.283 MB / 0.5504 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002696/0.7955, allocations: 2.959 MB / 0.5533 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001949/0.7975, allocations: 1.459 MB / 0.5548 GB, free: 95.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009634/0.8071, allocations: 10.95 MB / 0.5655 GB, free: 89.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.8072, allocations: 3.938 kB / 0.5655 GB, free: 89.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.8072, allocations: 0 / 0.5655 GB, free: 89.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003942/0.8076, allocations: 0 / 0.5655 GB, free: 89.77 MB / 446.1 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.02259/0.8302, allocations: 8.174 MB / 0.5734 GB, free: 82.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.8303, allocations: 8.031 kB / 0.5734 GB, free: 82.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3227/1.153, allocations: 27.28 MB / 0.6001 GB, free: 56.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01678/1.17, allocations: 6.912 MB / 0.6068 GB, free: 51.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003707/1.17, allocations: 437.7 kB / 0.6073 GB, free: 51.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002811/1.173, allocations: 0.5811 MB / 0.6078 GB, free: 51.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03589/1.209, allocations: 17.09 MB / 0.6245 GB, free: 38.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/1.209, allocations: 84.08 kB / 0.6246 GB, free: 38.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001801/1.211, allocations: 266.5 kB / 0.6248 GB, free: 38.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004303/1.215, allocations: 2.66 MB / 0.6274 GB, free: 35.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03075/1.246, allocations: 14.66 MB / 0.6418 GB, free: 25.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08334/1.33, allocations: 64.2 MB / 0.7045 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02355/1.353, allocations: 8.835 MB / 0.7131 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2176/1.571, allocations: 18.26 MB / 0.7309 GB, free: 180 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/1.571, allocations: 71.78 kB / 0.731 GB, free: 180 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 5.651e-06/1.571, allocations: 0 / 0.731 GB, free: 180 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.2401/1.811, allocations: 74.74 MB / 0.804 GB, free: 124.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/1.811, allocations: 380.6 kB / 0.8043 GB, free: 124.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008878/1.82, allocations: 6.882 MB / 0.8111 GB, free: 117.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009729/1.821, allocations: 81.7 kB / 0.8111 GB, free: 117.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002276/1.823, allocations: 4.85 MB / 0.8159 GB, free: 112.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.825, allocations: 1.363 MB / 0.8172 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005226/1.825, allocations: 180 kB / 0.8174 GB, free: 111 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003297/1.826, allocations: 0.6821 MB / 0.818 GB, free: 110.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006015/1.832, allocations: 5.616 MB / 0.8235 GB, free: 104.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007718/1.839, allocations: 10.55 MB / 0.8338 GB, free: 91.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008114/1.848, allocations: 7.537 MB / 0.8412 GB, free: 84.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.307e-05/1.848, allocations: 48 kB / 0.8412 GB, free: 84.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.0395/1.887, allocations: 21.9 MB / 0.8626 GB, free: 62.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/1.887, allocations: 81 kB / 0.8627 GB, free: 62.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/1.887, allocations: 172 kB / 0.8629 GB, free: 61.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0198/1.907, allocations: 6.919 MB / 0.8696 GB, free: 54.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.915, allocations: 2.074 MB / 0.8716 GB, free: 52.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2377/2.153, allocations: 35.21 MB / 0.906 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00926/2.162, allocations: 0.7195 MB / 0.9067 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/2.164, allocations: 0.5117 MB / 0.9072 GB, free: 157.2 MB / 494.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.006846/2.171, allocations: 3.421 MB / 0.9106 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/2.172, allocations: 0.5841 MB / 0.9111 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03167/2.204, allocations: 16.09 MB / 0.9269 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001153/2.204, allocations: 47.64 kB / 0.9269 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-05/2.204, allocations: 19.53 kB / 0.9269 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.657e-05/2.204, allocations: 21.11 kB / 0.9269 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05242/2.256, allocations: 31.44 MB / 0.9576 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.545e-05/2.257, allocations: 2.812 kB / 0.9576 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003223/2.26, allocations: 0.6051 MB / 0.9582 GB, free: 141.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01909/2.279, allocations: 6.568 MB / 0.9647 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008599/2.28, allocations: 63.89 kB / 0.9647 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04023/2.32, allocations: 33.48 MB / 0.9974 GB, free: 105.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/2.32, allocations: 7.938 kB / 0.9974 GB, free: 105.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04029/2.36, allocations: 23.94 MB / 1.021 GB, free: 81.74 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/2.362, allocations: 0.6496 MB / 1.021 GB, free: 81.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002368/2.365, allocations: 65.61 kB / 1.021 GB, free: 81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005497/2.37, allocations: 433.3 kB / 1.022 GB, free: 80.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001443/2.372, allocations: 251.5 kB / 1.022 GB, free: 80.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007647/2.373, allocations: 94.36 kB / 1.022 GB, free: 80.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008194/2.381, allocations: 4.462 MB / 1.027 GB, free: 75.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.71e-07/2.381, allocations: 0 / 1.027 GB, free: 75.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01302/2.394, allocations: 2.221 MB / 1.029 GB, free: 73.59 MB / 494.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.00198/2.396, allocations: 279.3 kB / 1.029 GB, free: 73.33 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02203/2.418, allocations: 14.21 MB / 1.043 GB, free: 59.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/2.418, allocations: 3.938 kB / 1.043 GB, free: 59.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01003/2.428, allocations: 6.555 MB / 1.049 GB, free: 52.55 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005245/2.433, allocations: 0.8327 MB / 1.05 GB, free: 51.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03964/2.473, allocations: 22.36 MB / 1.072 GB, free: 29.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009643/2.483, allocations: 5.414 MB / 1.077 GB, free: 24.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008537/2.491, allocations: 3.047 MB / 1.08 GB, free: 21.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/2.493, allocations: 391.4 kB / 1.081 GB, free: 20.62 MB / 494.1 MB Notification: Performance of SimCode: time 1.133e-06/2.494, allocations: 0 / 1.081 GB, free: 20.62 MB / 494.1 MB Notification: Performance of Templates: time 0.3608/2.854, allocations: 103.3 MB / 1.181 GB, free: 92.07 MB / 494.1 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