Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001557, allocations: 109.6 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 208.1 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.403/1.403, allocations: 227.7 MB / 247.7 MB, free: 10.41 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 72.75 kB / 307.9 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 50.53 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01584/0.1227, allocations: 13.45 MB / 371.9 MB, free: 476 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1888/0.3115, allocations: 4.877 MB / 376.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00276/0.3144, allocations: 88.78 kB / 376.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008173/0.3226, allocations: 4.172 MB / 381 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008723/0.3313, allocations: 2.114 MB / 383.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.3348, allocations: 1.102 MB / 384.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00933/0.3441, allocations: 6.049 MB / 390.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008038/0.3522, allocations: 5.311 MB / 395.6 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.357, allocations: 2.153 MB / 397.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004992/0.362, allocations: 2.856 MB / 400.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002136/0.3642, allocations: 0.4909 MB / 401.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004633/0.3688, allocations: 1.622 MB / 402.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004159/0.373, allocations: 2.55 MB / 405.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006243/0.3793, allocations: 2.882 MB / 408.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.3929, allocations: 9.251 MB / 417.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.393, allocations: 0 / 417.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.393, allocations: 0 / 417.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003738/0.3934, allocations: 0 / 417.4 MB, free: 15.02 MB / 334.1 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.01725/0.4106, allocations: 6.005 MB / 423.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4107, allocations: 8.031 kB / 423.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/0.4232, allocations: 2.543 MB / 426 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008699/0.4319, allocations: 3.69 MB / 429.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/0.4322, allocations: 311.3 kB / 429.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001536/0.4338, allocations: 437 kB / 430.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02434/0.4581, allocations: 12.42 MB / 442.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001558/0.4583, allocations: 55.48 kB / 442.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005763/0.4589, allocations: 189.3 kB / 443 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003424/0.4624, allocations: 2.036 MB / 445.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02332/0.4857, allocations: 10.56 MB / 455.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05973/0.5455, allocations: 44.35 MB / 500 MB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01354/0.5591, allocations: 4.855 MB / 0.493 GB, free: 5.859 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003062/0.5622, allocations: 2.016 MB / 0.495 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01204/0.5742, allocations: 7.198 MB / 0.502 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/0.5743, allocations: 59.5 kB / 0.5021 GB, free: 12.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.249e-06/0.5743, allocations: 0 / 0.5021 GB, free: 12.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06775/0.6421, allocations: 19.49 MB / 0.5211 GB, free: 8.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/0.6423, allocations: 205.9 kB / 0.5213 GB, free: 8.547 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007106/0.6494, allocations: 4.464 MB / 0.5256 GB, free: 4.062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004689/0.6499, allocations: 57.7 kB / 0.5257 GB, free: 4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002845/0.6527, allocations: 3.506 MB / 0.5291 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1808/0.8335, allocations: 0.8371 MB / 0.5299 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00248/0.836, allocations: 1.338 MB / 0.5312 GB, free: 140.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.023e-05/0.8361, allocations: 301.7 kB / 0.5315 GB, free: 140.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004303/0.8404, allocations: 2.367 MB / 0.5338 GB, free: 140 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006098/0.8466, allocations: 6.169 MB / 0.5399 GB, free: 134.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/0.857, allocations: 9.181 MB / 0.5488 GB, free: 126.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002296/0.8572, allocations: 41.44 kB / 0.5489 GB, free: 126.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01991/0.8772, allocations: 9.553 MB / 0.5582 GB, free: 123.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.8773, allocations: 58.47 kB / 0.5583 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/0.8775, allocations: 146.6 kB / 0.5584 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003977/0.8815, allocations: 1.364 MB / 0.5597 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004451/0.886, allocations: 1.482 MB / 0.5612 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.8961, allocations: 8.503 MB / 0.5695 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/0.901, allocations: 359.3 kB / 0.5698 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/0.9021, allocations: 384.4 kB / 0.5702 GB, free: 118.4 MB / 446.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003834/0.9059, allocations: 2.48 MB / 0.5726 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007023/0.9066, allocations: 402.7 kB / 0.573 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007316/0.9139, allocations: 4.128 MB / 0.577 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/0.914, allocations: 27.83 kB / 0.5771 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.914, allocations: 8 kB / 0.5771 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.941e-05/0.9141, allocations: 9.281 kB / 0.5771 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/0.9311, allocations: 10.36 MB / 0.5872 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.422e-05/0.9312, allocations: 4.594 kB / 0.5872 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.9327, allocations: 359.4 kB / 0.5875 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/0.9362, allocations: 1.14 MB / 0.5887 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002635/0.9365, allocations: 44.48 kB / 0.5887 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00812/0.9446, allocations: 7.118 MB / 0.5956 GB, free: 93.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.9447, allocations: 13.52 kB / 0.5957 GB, free: 93.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00978/0.9544, allocations: 6.913 MB / 0.6024 GB, free: 86.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.9556, allocations: 451.8 kB / 0.6028 GB, free: 86.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007116/0.9563, allocations: 48 kB / 0.6029 GB, free: 86.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.958, allocations: 110.7 kB / 0.603 GB, free: 86.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000342/0.9584, allocations: 149.5 kB / 0.6031 GB, free: 85.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.9585, allocations: 63.98 kB / 0.6032 GB, free: 85.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003342/0.9619, allocations: 2.798 MB / 0.6059 GB, free: 83.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.9619, allocations: 0 / 0.6059 GB, free: 83.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005536/0.9674, allocations: 1.198 MB / 0.6071 GB, free: 81.84 MB / 446.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006274/0.9681, allocations: 233.7 kB / 0.6073 GB, free: 81.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009978/0.9781, allocations: 6.864 MB / 0.614 GB, free: 74.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.9781, allocations: 8 kB / 0.614 GB, free: 74.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.9805, allocations: 1.883 MB / 0.6159 GB, free: 72.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003232/0.9838, allocations: 0.5281 MB / 0.6164 GB, free: 72.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/1, allocations: 11.66 MB / 0.6278 GB, free: 60.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00345/1.004, allocations: 3.851 MB / 0.6315 GB, free: 56.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/1.005, allocations: 315.4 kB / 0.6318 GB, free: 56.42 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/1.005, allocations: 0 / 0.6318 GB, free: 56.42 MB / 446.1 MB Notification: Performance of Templates: time 0.3026/1.307, allocations: 90 MB / 0.7197 GB, free: 134.9 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches