Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009158/0.0009158, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008412/0.0008411, allocations: 97.05 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002283/0.0002284, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2324, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03712/0.2695, allocations: 50.25 MB / 457.7 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02363/0.2932, allocations: 11.33 MB / 469.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008174/0.3015, allocations: 239.4 kB / 469.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007737/0.3092, allocations: 2.578 MB / 471.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01942/0.3287, allocations: 7.696 MB / 479.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.3324, allocations: 0.9088 MB / 480.5 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2297/0.5622, allocations: 62.04 MB / 0.5298 GB, free: 31.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007418/0.5696, allocations: 6.556 MB / 0.5362 GB, free: 27.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.5723, allocations: 1.651 MB / 0.5378 GB, free: 26.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004015/0.5763, allocations: 2.541 MB / 0.5403 GB, free: 24.3 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001067/0.5774, allocations: 184 kB / 0.5405 GB, free: 24.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.5799, allocations: 1.167 MB / 0.5416 GB, free: 23.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001656/0.5816, allocations: 2.191 MB / 0.5438 GB, free: 21.6 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009746/0.5826, allocations: 1.032 MB / 0.5448 GB, free: 21.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004919/0.5875, allocations: 7.43 MB / 0.552 GB, free: 14.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.5875, allocations: 3 kB / 0.552 GB, free: 14.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5876, allocations: 0 / 0.552 GB, free: 14.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001285/0.5877, allocations: 4 kB / 0.552 GB, free: 14.8 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.007746/0.5954, allocations: 4.99 MB / 0.5569 GB, free: 10.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.5955, allocations: 8.031 kB / 0.5569 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009361/0.6049, allocations: 2.591 MB / 0.5595 GB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006562/0.6114, allocations: 3.633 MB / 0.563 GB, free: 5.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.6116, allocations: 312.3 kB / 0.5633 GB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008359/0.6125, allocations: 430.3 kB / 0.5637 GB, free: 4.566 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/0.6313, allocations: 12.41 MB / 0.5758 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.6315, allocations: 47.5 kB / 0.5759 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004247/0.6319, allocations: 191.5 kB / 0.5761 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.6348, allocations: 2.039 MB / 0.578 GB, free: 9.215 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02016/0.6549, allocations: 10.53 MB / 0.5883 GB, free: 1.934 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05523/0.7102, allocations: 44.35 MB / 0.6316 GB, free: 8.621 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/0.7228, allocations: 4.868 MB / 0.6364 GB, free: 3.617 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003008/0.7259, allocations: 2.008 MB / 0.6383 GB, free: 1.598 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/0.738, allocations: 7.123 MB / 0.6453 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.7381, allocations: 55.52 kB / 0.6454 GB, free: 10.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 6.392e-06/0.7381, allocations: 0 / 0.6454 GB, free: 10.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=223): time 0.06495/0.803, allocations: 19.68 MB / 0.6646 GB, free: 6.535 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.8032, allocations: 205.5 kB / 0.6648 GB, free: 6.297 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00702/0.8102, allocations: 4.441 MB / 0.6691 GB, free: 1.84 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003895/0.8106, allocations: 55.78 kB / 0.6692 GB, free: 1.781 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/0.8132, allocations: 3.516 MB / 0.6726 GB, free: 14.28 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.8143, allocations: 0.8349 MB / 0.6734 GB, free: 13.45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005494/0.8148, allocations: 136.3 kB / 0.6735 GB, free: 13.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004848/0.8153, allocations: 0.587 MB / 0.6741 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/0.8192, allocations: 2.332 MB / 0.6764 GB, free: 10.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006253/0.8255, allocations: 6.142 MB / 0.6824 GB, free: 2.43 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1794/1.005, allocations: 3.71 MB / 0.686 GB, free: 187 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/1.005, allocations: 38.36 kB / 0.686 GB, free: 187 MB / 490.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01882/1.024, allocations: 9.503 MB / 0.6953 GB, free: 184.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/1.024, allocations: 62.84 kB / 0.6954 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002096/1.024, allocations: 130.2 kB / 0.6955 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003761/1.028, allocations: 1.383 MB / 0.6969 GB, free: 184.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/1.032, allocations: 1.471 MB / 0.6983 GB, free: 184 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009589/1.042, allocations: 7.961 MB / 0.7061 GB, free: 180 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004397/1.046, allocations: 366.5 kB / 0.7064 GB, free: 179.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008588/1.047, allocations: 384.1 kB / 0.7068 GB, free: 179.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003859/1.051, allocations: 2.493 MB / 0.7092 GB, free: 178 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007537/1.052, allocations: 405.5 kB / 0.7096 GB, free: 177.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007634/1.06, allocations: 4.103 MB / 0.7136 GB, free: 174.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.615e-05/1.06, allocations: 25.72 kB / 0.7136 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.256e-05/1.06, allocations: 15.77 kB / 0.7137 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.192e-05/1.06, allocations: 11.97 kB / 0.7137 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.078, allocations: 10.34 MB / 0.7238 GB, free: 164.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/1.078, allocations: 4 kB / 0.7238 GB, free: 164.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/1.079, allocations: 350.8 kB / 0.7241 GB, free: 163.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00336/1.083, allocations: 1.153 MB / 0.7252 GB, free: 162.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/1.083, allocations: 43.5 kB / 0.7253 GB, free: 162.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007948/1.091, allocations: 6.662 MB / 0.7318 GB, free: 155.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.091, allocations: 7.938 kB / 0.7318 GB, free: 155.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/1.101, allocations: 6.89 MB / 0.7385 GB, free: 148.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.102, allocations: 455.8 kB / 0.739 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009905/1.103, allocations: 53.47 kB / 0.739 GB, free: 148.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/1.106, allocations: 111.9 kB / 0.7391 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003823/1.106, allocations: 137 kB / 0.7392 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/1.106, allocations: 69.16 kB / 0.7393 GB, free: 148.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004687/1.111, allocations: 2.775 MB / 0.742 GB, free: 145.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.111, allocations: 0 / 0.742 GB, free: 145.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005419/1.116, allocations: 1.219 MB / 0.7432 GB, free: 144.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006422/1.117, allocations: 211.5 kB / 0.7434 GB, free: 143.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007792/1.125, allocations: 5.709 MB / 0.749 GB, free: 138.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.125, allocations: 4 kB / 0.749 GB, free: 138.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/1.127, allocations: 1.859 MB / 0.7508 GB, free: 136.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.131, allocations: 0.5219 MB / 0.7513 GB, free: 135.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/1.146, allocations: 13.57 MB / 0.7646 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002948/1.149, allocations: 3.845 MB / 0.7683 GB, free: 118.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/1.15, allocations: 319.4 kB / 0.7686 GB, free: 118 MB / 490.7 MB Notification: Performance of SimCode: time 6.02e-07/1.15, allocations: 4 kB / 0.7686 GB, free: 118 MB / 490.7 MB Notification: Performance of Templates: time 0.08935/1.239, allocations: 89.6 MB / 0.8561 GB, free: 28.37 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches