Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 116.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002408/0.002408, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.196/2.196, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 59.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3496, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01956/0.3692, allocations: 13.45 MB / 423.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.3816, allocations: 4.88 MB / 428.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.3845, allocations: 87.75 kB / 428.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008055/0.3927, allocations: 4.159 MB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006623/0.3994, allocations: 2.12 MB / 434.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003014/0.4024, allocations: 1.103 MB / 435.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009278/0.4117, allocations: 6.056 MB / 441.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008125/0.4199, allocations: 5.298 MB / 447.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004589/0.4245, allocations: 2.146 MB / 449.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00511/0.4296, allocations: 2.87 MB / 452.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002027/0.4317, allocations: 0.4922 MB / 452.6 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004408/0.4361, allocations: 1.631 MB / 454.2 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003951/0.4401, allocations: 2.584 MB / 456.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006468/0.4466, allocations: 2.879 MB / 459.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.4602, allocations: 9.489 MB / 469.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.4602, allocations: 0 / 469.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4602, allocations: 0 / 469.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003785/0.4606, allocations: 0 / 469.2 MB, free: 6.086 MB / 382.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.01775/0.4784, allocations: 6.005 MB / 475.2 MB, free: 4 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.15e-05/0.4785, allocations: 8.078 kB / 475.2 MB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01269/0.4912, allocations: 2.548 MB / 477.7 MB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.5034, allocations: 3.753 MB / 481.5 MB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004137/0.5038, allocations: 304.3 kB / 481.8 MB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002646/0.5065, allocations: 439.6 kB / 482.2 MB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02847/0.535, allocations: 12.42 MB / 494.6 MB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003019/0.5353, allocations: 51.5 kB / 494.7 MB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001666/0.537, allocations: 191.8 kB / 494.9 MB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003569/0.5406, allocations: 2.035 MB / 496.9 MB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/0.5642, allocations: 10.56 MB / 0.4956 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06391/0.6282, allocations: 44.13 MB / 0.5387 GB, free: 1.461 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2608/0.889, allocations: 4.841 MB / 0.5434 GB, free: 122.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002575/0.8916, allocations: 2.013 MB / 0.5454 GB, free: 121.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/0.9034, allocations: 7.203 MB / 0.5524 GB, free: 117.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.9035, allocations: 54.41 kB / 0.5525 GB, free: 117.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.638e-06/0.9035, allocations: 0.5625 kB / 0.5525 GB, free: 117.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06535/0.9689, allocations: 19.49 MB / 0.5715 GB, free: 103.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/0.969, allocations: 205.9 kB / 0.5717 GB, free: 103.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00493/0.9739, allocations: 4.46 MB / 0.576 GB, free: 98.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004108/0.9743, allocations: 61.38 kB / 0.5761 GB, free: 98.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.9758, allocations: 3.509 MB / 0.5795 GB, free: 95.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000689/0.9765, allocations: 0.8389 MB / 0.5803 GB, free: 94.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/0.9779, allocations: 1.337 MB / 0.5817 GB, free: 93.03 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.481e-05/0.978, allocations: 305.1 kB / 0.5819 GB, free: 92.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002732/0.9807, allocations: 2.375 MB / 0.5843 GB, free: 90.35 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003954/0.9847, allocations: 6.163 MB / 0.5903 GB, free: 82.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008004/0.9927, allocations: 9.181 MB / 0.5992 GB, free: 71.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.269e-05/0.9929, allocations: 40 kB / 0.5993 GB, free: 71.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01598/1.009, allocations: 9.556 MB / 0.6086 GB, free: 61.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.406e-05/1.009, allocations: 60 kB / 0.6087 GB, free: 61.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.009, allocations: 132 kB / 0.6088 GB, free: 61.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00384/1.013, allocations: 1.37 MB / 0.6101 GB, free: 60.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004428/1.017, allocations: 1.478 MB / 0.6116 GB, free: 58.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009877/1.027, allocations: 8.478 MB / 0.6199 GB, free: 50.03 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005159/1.032, allocations: 363.4 kB / 0.6202 GB, free: 49.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009603/1.033, allocations: 391.9 kB / 0.6206 GB, free: 49.29 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.003578/1.037, allocations: 2.48 MB / 0.623 GB, free: 46.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007541/1.038, allocations: 402.8 kB / 0.6234 GB, free: 46.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007139/1.045, allocations: 4.13 MB / 0.6274 GB, free: 42.26 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/1.045, allocations: 24 kB / 0.6274 GB, free: 42.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/1.045, allocations: 4 kB / 0.6274 GB, free: 42.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/1.045, allocations: 15.95 kB / 0.6275 GB, free: 42.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01908/1.064, allocations: 10.14 MB / 0.6374 GB, free: 31.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/1.064, allocations: 8 kB / 0.6374 GB, free: 31.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/1.066, allocations: 327.5 kB / 0.6377 GB, free: 31.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00434/1.07, allocations: 1.148 MB / 0.6388 GB, free: 30.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003213/1.071, allocations: 47.89 kB / 0.6388 GB, free: 30.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/1.082, allocations: 7.152 MB / 0.6458 GB, free: 23.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/1.082, allocations: 8 kB / 0.6458 GB, free: 23.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.095, allocations: 6.913 MB / 0.6526 GB, free: 16.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.096, allocations: 455.8 kB / 0.653 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00045/1.097, allocations: 40 kB / 0.6531 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/1.098, allocations: 115.9 kB / 0.6532 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/1.099, allocations: 145 kB / 0.6533 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.099, allocations: 67.89 kB / 0.6534 GB, free: 15.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003462/1.102, allocations: 2.795 MB / 0.6561 GB, free: 12.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.102, allocations: 0 / 0.6561 GB, free: 12.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005239/1.107, allocations: 1.204 MB / 0.6573 GB, free: 11.34 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.0005816/1.108, allocations: 234.4 kB / 0.6575 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007871/1.116, allocations: 5.769 MB / 0.6631 GB, free: 5.359 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.116, allocations: 4 kB / 0.6631 GB, free: 5.355 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002371/1.118, allocations: 1.887 MB / 0.665 GB, free: 3.457 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/1.122, allocations: 0.5285 MB / 0.6655 GB, free: 2.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/1.142, allocations: 11.54 MB / 0.6768 GB, free: 7.293 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005019/1.147, allocations: 3.847 MB / 0.6805 GB, free: 3.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/1.148, allocations: 319.3 kB / 0.6808 GB, free: 3.098 MB / 478.1 MB Notification: Performance of SimCode: time 1.223e-06/1.148, allocations: 0 / 0.6808 GB, free: 3.098 MB / 478.1 MB Notification: Performance of Templates: time 0.3719/1.52, allocations: 91.41 MB / 0.7701 GB, free: 137.8 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches