Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.271, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01922/0.2903, allocations: 18.03 MB / 428 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.3052, allocations: 6.025 MB / 434 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004052/0.3093, allocations: 147.5 kB / 434.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01166/0.3211, allocations: 6.25 MB / 440.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007663/0.3288, allocations: 2.821 MB / 443.2 MB, free: 216 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005281/0.3341, allocations: 2.265 MB / 445.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01369/0.3478, allocations: 9.693 MB / 455.2 MB, free: 4.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01409/0.3619, allocations: 8.404 MB / 463.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006144/0.3681, allocations: 3.21 MB / 466.8 MB, free: 8.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006735/0.3749, allocations: 4.164 MB / 470.9 MB, free: 4.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00253/0.3775, allocations: 0.7188 MB / 471.7 MB, free: 3.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004921/0.3824, allocations: 1.892 MB / 473.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005417/0.3879, allocations: 3.839 MB / 477.4 MB, free: 13.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007515/0.3954, allocations: 4.123 MB / 481.5 MB, free: 9.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.4114, allocations: 13.17 MB / 494.7 MB, free: 12.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.4115, allocations: 0 / 494.7 MB, free: 12.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4115, allocations: 3.938 kB / 494.7 MB, free: 12.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005087/0.412, allocations: 0 / 494.7 MB, free: 12.51 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02464/0.4367, allocations: 8.915 MB / 0.4918 GB, free: 3.508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4368, allocations: 15.97 kB / 0.4918 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05008/0.4868, allocations: 4.847 MB / 0.4965 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01668/0.5036, allocations: 6.392 MB / 0.5028 GB, free: 8.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004004/0.504, allocations: 431.7 kB / 0.5032 GB, free: 7.738 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002366/0.5064, allocations: 0.5895 MB / 0.5038 GB, free: 7.148 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0348/0.5412, allocations: 17.04 MB / 0.5204 GB, free: 5.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003166/0.5415, allocations: 75.33 kB / 0.5205 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00157/0.5431, allocations: 271.8 kB / 0.5207 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004651/0.5478, allocations: 2.654 MB / 0.5233 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03082/0.5786, allocations: 14.79 MB / 0.5378 GB, free: 3.348 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.45/1.029, allocations: 64.24 MB / 0.6005 GB, free: 67.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02135/1.05, allocations: 8.779 MB / 0.6091 GB, free: 58.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004875/1.055, allocations: 5.069 MB / 0.614 GB, free: 53.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02158/1.077, allocations: 18.63 MB / 0.6322 GB, free: 34.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/1.077, allocations: 68.56 kB / 0.6323 GB, free: 34.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.961e-06/1.077, allocations: 0 / 0.6323 GB, free: 34.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2632/1.34, allocations: 73.99 MB / 0.7045 GB, free: 8.234 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001953/1.34, allocations: 372.6 kB / 0.7049 GB, free: 7.789 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/1.351, allocations: 6.359 MB / 0.7111 GB, free: 1.422 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001084/1.353, allocations: 81.7 kB / 0.7112 GB, free: 1.336 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.00374/1.356, allocations: 4.753 MB / 0.7158 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002134/1.358, allocations: 1.372 MB / 0.7172 GB, free: 11.12 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005312/1.364, allocations: 1.978 MB / 0.7191 GB, free: 9.133 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/1.364, allocations: 305.1 kB / 0.7194 GB, free: 8.832 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008861/1.373, allocations: 5.988 MB / 0.7252 GB, free: 2.836 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01348/1.386, allocations: 11.03 MB / 0.736 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2317/1.618, allocations: 17.97 MB / 0.7536 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.618, allocations: 50.59 kB / 0.7536 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0425/1.661, allocations: 23.33 MB / 0.7764 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.661, allocations: 78.62 kB / 0.7765 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001848/1.661, allocations: 169.7 kB / 0.7766 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02127/1.682, allocations: 7.457 MB / 0.7839 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007265/1.69, allocations: 2.187 MB / 0.786 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04232/1.732, allocations: 38.09 MB / 0.8232 GB, free: 114.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008706/1.741, allocations: 0.7391 MB / 0.824 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001762/1.743, allocations: 0.5234 MB / 0.8245 GB, free: 113.1 MB / 0.5294 GB 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.005916/1.748, allocations: 3.447 MB / 0.8278 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/1.75, allocations: 0.5703 MB / 0.8284 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03046/1.78, allocations: 16.96 MB / 0.845 GB, free: 92.42 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.912e-05/1.78, allocations: 48 kB / 0.845 GB, free: 92.37 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.635e-05/1.78, allocations: 20 kB / 0.845 GB, free: 92.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.856e-05/1.781, allocations: 19.69 kB / 0.845 GB, free: 92.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0475/1.828, allocations: 32.03 MB / 0.8763 GB, free: 60.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.155e-05/1.828, allocations: 10.23 kB / 0.8763 GB, free: 60.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/1.831, allocations: 0.5967 MB / 0.8769 GB, free: 59.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01935/1.851, allocations: 7.019 MB / 0.8838 GB, free: 52.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008491/1.852, allocations: 60 kB / 0.8838 GB, free: 52.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03979/1.891, allocations: 36.3 MB / 0.9193 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.891, allocations: 4 kB / 0.9193 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2766/2.168, allocations: 24.59 MB / 0.9433 GB, free: 182.4 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/2.17, allocations: 0.6322 MB / 0.9439 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/2.172, allocations: 62.19 kB / 0.944 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004778/2.176, allocations: 449.8 kB / 0.9444 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001159/2.178, allocations: 254.9 kB / 0.9446 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/2.178, allocations: 91.72 kB / 0.9447 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.005426/2.183, allocations: 4.04 MB / 0.9487 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of sort global known variables: time 8.32e-07/2.183, allocations: 3.906 kB / 0.9487 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.009077/2.192, allocations: 2.277 MB / 0.9509 GB, free: 181.9 MB / 0.5451 GB 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.001257/2.194, allocations: 290.9 kB / 0.9512 GB, free: 181.7 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01947/2.213, allocations: 14.89 MB / 0.9657 GB, free: 176 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/2.213, allocations: 0 / 0.9657 GB, free: 176 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.009875/2.223, allocations: 6.708 MB / 0.9723 GB, free: 173.1 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/2.229, allocations: 0.8789 MB / 0.9731 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/2.257, allocations: 20.57 MB / 0.9932 GB, free: 155.9 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00531/2.262, allocations: 5.222 MB / 0.9983 GB, free: 151.9 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/2.265, allocations: 439.1 kB / 0.9987 GB, free: 151.5 MB / 0.5451 GB Notification: Performance of SimCode: time 1.342e-06/2.265, allocations: 0 / 0.9987 GB, free: 151.5 MB / 0.5451 GB Notification: Performance of Templates: time 0.4453/2.71, allocations: 209.6 MB / 1.203 GB, free: 138.3 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches