Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 104.7 kB / 17.15 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 47.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1088, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2785/0.3874, allocations: 55.45 MB / 382.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02898/0.4165, allocations: 11.92 MB / 394 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01469/0.4313, allocations: 244.7 kB / 394.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007813/0.4391, allocations: 4.212 MB / 398.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006196/0.4454, allocations: 2.01 MB / 400.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.4482, allocations: 1.012 MB / 401.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.4589, allocations: 8.214 MB / 409.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005714/0.4647, allocations: 5.223 MB / 414.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003083/0.4678, allocations: 1.908 MB / 416.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003901/0.4717, allocations: 3.049 MB / 419.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007537/0.4725, allocations: 351.9 kB / 420.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003099/0.4756, allocations: 1.545 MB / 421.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.478, allocations: 2.457 MB / 424.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003289/0.4813, allocations: 2.748 MB / 426.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.4913, allocations: 9.182 MB / 436.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.4914, allocations: 0 / 436.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4914, allocations: 4 kB / 436.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003166/0.4917, allocations: 0 / 436.1 MB, free: 11.7 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01851/0.5103, allocations: 6.033 MB / 442.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.5103, allocations: 12.03 kB / 442.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/0.5224, allocations: 2.535 MB / 444.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009264/0.5317, allocations: 3.853 MB / 448.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002931/0.532, allocations: 308.7 kB / 448.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001751/0.5338, allocations: 439.7 kB / 449.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02695/0.5607, allocations: 12.4 MB / 461.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002062/0.561, allocations: 67.42 kB / 461.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006864/0.5617, allocations: 188.1 kB / 461.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/0.5649, allocations: 2.026 MB / 464 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/0.5883, allocations: 10.56 MB / 474.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05908/0.6474, allocations: 44.38 MB / 0.5067 GB, free: 7.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01285/0.6603, allocations: 4.841 MB / 0.5115 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002836/0.6632, allocations: 2.007 MB / 0.5134 GB, free: 352 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/0.6747, allocations: 7.116 MB / 0.5204 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.6748, allocations: 55.56 kB / 0.5204 GB, free: 8.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.169e-06/0.6748, allocations: 0 / 0.5204 GB, free: 8.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06467/0.7395, allocations: 19.65 MB / 0.5396 GB, free: 5.238 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.7397, allocations: 213.8 kB / 0.5398 GB, free: 4.988 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006286/0.746, allocations: 4.485 MB / 0.5442 GB, free: 496 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004616/0.7465, allocations: 57.7 kB / 0.5443 GB, free: 432 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2052/0.9517, allocations: 3.535 MB / 0.5477 GB, free: 178.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.9528, allocations: 0.8329 MB / 0.5485 GB, free: 178.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00209/0.9549, allocations: 1.341 MB / 0.5498 GB, free: 177.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.955, allocations: 302.9 kB / 0.5501 GB, free: 177.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003684/0.9586, allocations: 2.365 MB / 0.5524 GB, free: 176.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005714/0.9644, allocations: 6.16 MB / 0.5584 GB, free: 170.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/0.9746, allocations: 9.173 MB / 0.5674 GB, free: 163.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/0.9748, allocations: 39.38 kB / 0.5674 GB, free: 163.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01515/0.99, allocations: 9.548 MB / 0.5768 GB, free: 159.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/0.9901, allocations: 66.03 kB / 0.5768 GB, free: 159.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/0.9902, allocations: 133.3 kB / 0.577 GB, free: 159.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003722/0.994, allocations: 1.374 MB / 0.5783 GB, free: 159.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00386/0.9978, allocations: 1.474 MB / 0.5797 GB, free: 159.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009156/1.007, allocations: 7.967 MB / 0.5875 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00479/1.012, allocations: 358.2 kB / 0.5879 GB, free: 152.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005879/1.012, allocations: 384 kB / 0.5882 GB, free: 152.1 MB / 462.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.003362/1.016, allocations: 2.487 MB / 0.5907 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006091/1.016, allocations: 403.8 kB / 0.591 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006856/1.023, allocations: 4.127 MB / 0.5951 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/1.023, allocations: 24 kB / 0.5951 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/1.023, allocations: 8 kB / 0.5951 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/1.023, allocations: 7.969 kB / 0.5951 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/1.039, allocations: 10.37 MB / 0.6052 GB, free: 134.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/1.039, allocations: 4 kB / 0.6052 GB, free: 134.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/1.04, allocations: 348.1 kB / 0.6056 GB, free: 134.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003395/1.043, allocations: 1.154 MB / 0.6067 GB, free: 133.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/1.044, allocations: 43.98 kB / 0.6067 GB, free: 133 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007714/1.051, allocations: 6.659 MB / 0.6132 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.051, allocations: 11.94 kB / 0.6132 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009381/1.061, allocations: 6.922 MB / 0.62 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/1.063, allocations: 0.7301 MB / 0.6207 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/1.063, allocations: 40 kB / 0.6208 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/1.065, allocations: 109.4 kB / 0.6209 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/1.065, allocations: 145.1 kB / 0.621 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/1.065, allocations: 60 kB / 0.6211 GB, free: 118.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00435/1.069, allocations: 2.822 MB / 0.6238 GB, free: 115.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.07, allocations: 0 / 0.6238 GB, free: 115.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007989/1.078, allocations: 1.222 MB / 0.625 GB, free: 114.1 MB / 462.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.0006313/1.078, allocations: 234.6 kB / 0.6252 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008285/1.086, allocations: 5.743 MB / 0.6308 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.087, allocations: 1.875 kB / 0.6308 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002506/1.089, allocations: 1.871 MB / 0.6327 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/1.093, allocations: 0.5109 MB / 0.6332 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02232/1.115, allocations: 13.63 MB / 0.6465 GB, free: 92.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006349/1.121, allocations: 3.875 MB / 0.6503 GB, free: 88.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005225/1.127, allocations: 1.926 MB / 0.6521 GB, free: 86.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.128, allocations: 267.4 kB / 0.6524 GB, free: 85.93 MB / 462.1 MB Notification: Performance of SimCode: time 2.494e-06/1.128, allocations: 0 / 0.6524 GB, free: 85.93 MB / 462.1 MB Notification: Performance of Templates: time 0.08118/1.209, allocations: 44.21 MB / 0.6956 GB, free: 41.74 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches