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.001732/0.001732, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2929, allocations: 50.55 MB / 409.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01947/0.3125, allocations: 18.03 MB / 427.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01387/0.3264, allocations: 6.034 MB / 433.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004796/0.3312, allocations: 143.5 kB / 433.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.012/0.3432, allocations: 6.25 MB / 439.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007651/0.3509, allocations: 2.805 MB / 442.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004744/0.3557, allocations: 2.28 MB / 444.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01258/0.3683, allocations: 9.685 MB / 454.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01099/0.3793, allocations: 8.411 MB / 462.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006388/0.3858, allocations: 3.214 MB / 466.1 MB, free: 8.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00661/0.3924, allocations: 4.16 MB / 470.3 MB, free: 4.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002578/0.395, allocations: 0.7188 MB / 471 MB, free: 3.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004488/0.3995, allocations: 1.896 MB / 472.9 MB, free: 1.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004933/0.4045, allocations: 3.839 MB / 476.7 MB, free: 14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007614/0.4121, allocations: 4.127 MB / 480.8 MB, free: 9.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.429, allocations: 13.16 MB / 494 MB, free: 12.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.429, allocations: 0 / 494 MB, free: 12.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.429, allocations: 0 / 494 MB, free: 12.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007501/0.4298, allocations: 4 kB / 494 MB, free: 12.64 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.02644/0.4563, allocations: 8.919 MB / 0.4911 GB, free: 3.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4563, allocations: 12.03 kB / 0.4911 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0518/0.5081, allocations: 4.847 MB / 0.4959 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/0.5264, allocations: 6.388 MB / 0.5021 GB, free: 8.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004867/0.527, allocations: 435.7 kB / 0.5025 GB, free: 7.875 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003045/0.53, allocations: 0.5817 MB / 0.5031 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0343/0.5643, allocations: 17.05 MB / 0.5197 GB, free: 5.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002385/0.5646, allocations: 79.27 kB / 0.5198 GB, free: 5.219 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008173/0.5655, allocations: 271.8 kB / 0.5201 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004281/0.5697, allocations: 2.65 MB / 0.5227 GB, free: 2.301 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02924/0.599, allocations: 14.79 MB / 0.5371 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4906/1.09, allocations: 64.25 MB / 0.5998 GB, free: 67.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02059/1.11, allocations: 8.773 MB / 0.6084 GB, free: 58.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004515/1.115, allocations: 5.068 MB / 0.6134 GB, free: 53.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0213/1.136, allocations: 18.63 MB / 0.6316 GB, free: 34.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/1.136, allocations: 64.56 kB / 0.6316 GB, free: 34.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.14e-06/1.136, allocations: 0 / 0.6316 GB, free: 34.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2488/1.385, allocations: 73.98 MB / 0.7039 GB, free: 8.484 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002348/1.385, allocations: 380.6 kB / 0.7042 GB, free: 8.031 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008671/1.394, allocations: 6.359 MB / 0.7104 GB, free: 1.664 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008647/1.395, allocations: 81.7 kB / 0.7105 GB, free: 1.578 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0032/1.398, allocations: 4.749 MB / 0.7152 GB, free: 12.77 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001704/1.4, allocations: 1.384 MB / 0.7165 GB, free: 11.36 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002956/1.403, allocations: 1.967 MB / 0.7184 GB, free: 9.383 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.661e-05/1.403, allocations: 301.1 kB / 0.7187 GB, free: 9.086 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007784/1.411, allocations: 5.996 MB / 0.7246 GB, free: 3.082 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01113/1.422, allocations: 11.02 MB / 0.7353 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2575/1.679, allocations: 17.97 MB / 0.7529 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/1.68, allocations: 46.78 kB / 0.7529 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04141/1.721, allocations: 23.33 MB / 0.7757 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.637e-05/1.721, allocations: 78.06 kB / 0.7758 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/1.721, allocations: 181.4 kB / 0.776 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02185/1.743, allocations: 7.446 MB / 0.7832 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007731/1.751, allocations: 2.191 MB / 0.7854 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04273/1.794, allocations: 38.09 MB / 0.8226 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009373/1.803, allocations: 0.7349 MB / 0.8233 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001632/1.805, allocations: 0.5312 MB / 0.8238 GB, free: 113.4 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.005321/1.81, allocations: 3.434 MB / 0.8272 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/1.811, allocations: 0.5728 MB / 0.8277 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0297/1.841, allocations: 16.96 MB / 0.8443 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.341e-05/1.841, allocations: 47.83 kB / 0.8443 GB, free: 92.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/1.841, allocations: 20 kB / 0.8444 GB, free: 92.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.828e-05/1.841, allocations: 19.92 kB / 0.8444 GB, free: 92.71 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05112/1.892, allocations: 32.03 MB / 0.8756 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.567e-05/1.893, allocations: 3.938 kB / 0.8757 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003474/1.896, allocations: 0.6045 MB / 0.8762 GB, free: 59.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/1.916, allocations: 7.015 MB / 0.8831 GB, free: 52.78 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008926/1.917, allocations: 67.92 kB / 0.8832 GB, free: 52.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03987/1.957, allocations: 36.3 MB / 0.9186 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.957, allocations: 7.453 kB / 0.9186 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2932/2.25, allocations: 24.59 MB / 0.9426 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002171/2.253, allocations: 0.6311 MB / 0.9432 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001555/2.254, allocations: 67.66 kB / 0.9433 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004399/2.259, allocations: 442.8 kB / 0.9437 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/2.26, allocations: 248.7 kB / 0.944 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003527/2.26, allocations: 98.7 kB / 0.9441 GB, free: 182.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005262/2.265, allocations: 4.037 MB / 0.948 GB, free: 182 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/2.265, allocations: 3.969 kB / 0.948 GB, free: 182 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008588/2.274, allocations: 2.282 MB / 0.9502 GB, free: 181.8 MB / 0.545 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.00101/2.275, allocations: 291 kB / 0.9505 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01981/2.295, allocations: 14.89 MB / 0.9651 GB, free: 175.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/2.295, allocations: 0 / 0.9651 GB, free: 175.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009112/2.304, allocations: 6.704 MB / 0.9716 GB, free: 173 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005331/2.309, allocations: 0.8784 MB / 0.9725 GB, free: 172.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02806/2.337, allocations: 19.9 MB / 0.9919 GB, free: 156.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005641/2.343, allocations: 5.26 MB / 0.997 GB, free: 152.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005956/2.349, allocations: 3.022 MB / 1 GB, free: 150.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/2.351, allocations: 378.6 kB / 1 GB, free: 150.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.943e-06/2.351, allocations: 0 / 1 GB, free: 150.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1443/2.495, allocations: 109.8 MB / 1.108 GB, free: 42.62 MB / 0.545 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/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