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.001527/0.001527, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.28 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.09399, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2244/0.3184, allocations: 18.03 MB / 376.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.3314, allocations: 6.044 MB / 383 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00416/0.3356, allocations: 141.9 kB / 383.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.3466, allocations: 6.245 MB / 389.4 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007979/0.3546, allocations: 2.817 MB / 392.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005069/0.3597, allocations: 2.271 MB / 394.4 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01538/0.3751, allocations: 9.686 MB / 404.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01295/0.3881, allocations: 8.422 MB / 412.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007171/0.3953, allocations: 3.175 MB / 415.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007622/0.4029, allocations: 4.16 MB / 419.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.4057, allocations: 0.7109 MB / 420.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005848/0.4116, allocations: 1.892 MB / 422.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005418/0.417, allocations: 3.8 MB / 426.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007713/0.4248, allocations: 4.13 MB / 430.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/0.4405, allocations: 13.16 MB / 443.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.4406, allocations: 0 / 443.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4406, allocations: 0 / 443.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004433/0.441, allocations: 0 / 443.6 MB, free: 6.188 MB / 350.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.02776/0.4688, allocations: 8.919 MB / 452.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.136e-05/0.4689, allocations: 8.031 kB / 452.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04381/0.5127, allocations: 4.851 MB / 457.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01651/0.5293, allocations: 6.376 MB / 463.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004679/0.5298, allocations: 435.7 kB / 464.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002395/0.5322, allocations: 0.5858 MB / 464.7 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03546/0.5676, allocations: 17.05 MB / 481.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004116/0.5681, allocations: 79.33 kB / 481.9 MB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0021/0.5702, allocations: 275.8 kB / 482.1 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005201/0.5754, allocations: 2.647 MB / 484.8 MB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0302/0.6057, allocations: 14.79 MB / 499.6 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4603/1.066, allocations: 64.23 MB / 0.5506 GB, free: 102 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02273/1.089, allocations: 8.779 MB / 0.5592 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005317/1.094, allocations: 5.065 MB / 0.5641 GB, free: 99.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02626/1.12, allocations: 18.63 MB / 0.5823 GB, free: 90.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/1.121, allocations: 71.53 kB / 0.5824 GB, free: 90.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.35e-06/1.121, allocations: 0 / 0.5824 GB, free: 90.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2266/1.347, allocations: 73.96 MB / 0.6546 GB, free: 21.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.347, allocations: 372.6 kB / 0.655 GB, free: 20.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00732/1.355, allocations: 6.367 MB / 0.6612 GB, free: 14.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009299/1.356, allocations: 85.7 kB / 0.6613 GB, free: 14.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002263/1.358, allocations: 4.745 MB / 0.6659 GB, free: 9.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/1.36, allocations: 1.376 MB / 0.6672 GB, free: 8.113 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002556/1.362, allocations: 1.977 MB / 0.6692 GB, free: 6.125 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.595e-05/1.362, allocations: 313 kB / 0.6695 GB, free: 5.816 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006589/1.369, allocations: 5.989 MB / 0.6753 GB, free: 15.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0112/1.38, allocations: 11.01 MB / 0.6861 GB, free: 2.434 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02073/1.401, allocations: 17.97 MB / 0.7036 GB, free: 14.04 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/1.401, allocations: 48 kB / 0.7037 GB, free: 13.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2363/1.637, allocations: 23.34 MB / 0.7265 GB, free: 164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/1.637, allocations: 78.84 kB / 0.7265 GB, free: 164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002607/1.638, allocations: 175.1 kB / 0.7267 GB, free: 164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/1.659, allocations: 7.437 MB / 0.734 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007182/1.666, allocations: 2.191 MB / 0.7361 GB, free: 163.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04354/1.71, allocations: 38.1 MB / 0.7733 GB, free: 141.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008785/1.719, allocations: 0.7436 MB / 0.774 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001946/1.721, allocations: 0.5273 MB / 0.7746 GB, free: 140.3 MB / 494.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.00591/1.727, allocations: 3.438 MB / 0.7779 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.728, allocations: 0.5701 MB / 0.7785 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02913/1.757, allocations: 16.96 MB / 0.795 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.311e-05/1.757, allocations: 52.75 kB / 0.7951 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/1.757, allocations: 16 kB / 0.7951 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.467e-05/1.757, allocations: 15.94 kB / 0.7951 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04919/1.807, allocations: 32.02 MB / 0.8264 GB, free: 87.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-05/1.807, allocations: 5 kB / 0.8264 GB, free: 87.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/1.81, allocations: 0.6045 MB / 0.827 GB, free: 86.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/1.829, allocations: 7.011 MB / 0.8338 GB, free: 79.74 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009783/1.83, allocations: 63.94 kB / 0.8339 GB, free: 79.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03889/1.869, allocations: 36.3 MB / 0.8693 GB, free: 43.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.869, allocations: 7.938 kB / 0.8693 GB, free: 43.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03565/1.904, allocations: 24.61 MB / 0.8934 GB, free: 18.55 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001759/1.906, allocations: 0.63 MB / 0.894 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.907, allocations: 67.92 kB / 0.8941 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003676/1.911, allocations: 445.2 kB / 0.8945 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/1.912, allocations: 242.6 kB / 0.8947 GB, free: 17.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003618/1.912, allocations: 101.4 kB / 0.8948 GB, free: 17.06 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.2166/2.129, allocations: 4.039 MB / 0.8988 GB, free: 162.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.11e-07/2.129, allocations: 0 / 0.8988 GB, free: 162.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01047/2.139, allocations: 2.274 MB / 0.901 GB, free: 162.9 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 (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.001246/2.141, allocations: 290.9 kB / 0.9013 GB, free: 162.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02345/2.164, allocations: 14.9 MB / 0.9158 GB, free: 158.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/2.164, allocations: 0 / 0.9158 GB, free: 158.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009558/2.174, allocations: 6.704 MB / 0.9223 GB, free: 155.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/2.179, allocations: 0.8799 MB / 0.9232 GB, free: 155.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02677/2.206, allocations: 19.9 MB / 0.9426 GB, free: 145 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005178/2.211, allocations: 5.267 MB / 0.9478 GB, free: 141 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006055/2.217, allocations: 3.013 MB / 0.9507 GB, free: 139.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/2.219, allocations: 384 kB / 0.9511 GB, free: 138.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/2.219, allocations: 0 / 0.9511 GB, free: 138.7 MB / 494.1 MB Notification: Performance of Templates: time 0.1367/2.356, allocations: 105.3 MB / 1.054 GB, free: 35.44 MB / 494.1 MB 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 -s gbode -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