Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001319/0.001319, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001248/0.001248, allocations: 187.1 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3053, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01447/0.3198, allocations: 13.49 MB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.33, allocations: 4.858 MB / 419.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002588/0.3327, allocations: 87.75 kB / 419.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008239/0.341, allocations: 4.19 MB / 424 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006056/0.3471, allocations: 2.15 MB / 426.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002961/0.3501, allocations: 1.107 MB / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009076/0.3592, allocations: 5.965 MB / 433.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007978/0.3672, allocations: 5.313 MB / 438.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004567/0.3718, allocations: 2.15 MB / 440.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005266/0.3771, allocations: 2.874 MB / 443.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002024/0.3792, allocations: 500 kB / 444.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004514/0.3837, allocations: 1.646 MB / 445.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003804/0.3875, allocations: 2.607 MB / 448.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005806/0.3934, allocations: 2.902 MB / 451.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.4068, allocations: 9.536 MB / 460.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.094e-05/0.4068, allocations: 0 / 460.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4069, allocations: 0 / 460.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003675/0.4072, allocations: 0 / 460.8 MB, free: 13.3 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.01767/0.4249, allocations: 6.025 MB / 466.8 MB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.425, allocations: 12.02 kB / 466.8 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/0.4376, allocations: 2.537 MB / 469.3 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.448, allocations: 3.815 MB / 473.1 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.4484, allocations: 312.3 kB / 473.4 MB, free: 468 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.4506, allocations: 443.6 kB / 473.9 MB, free: 24 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02876/0.4793, allocations: 12.4 MB / 486.3 MB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002634/0.4797, allocations: 59.52 kB / 486.3 MB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001578/0.4813, allocations: 183.9 kB / 486.5 MB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003826/0.4851, allocations: 2.031 MB / 488.6 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02417/0.5093, allocations: 10.56 MB / 499.1 MB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06457/0.5739, allocations: 44.15 MB / 0.5305 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01313/0.5871, allocations: 4.831 MB / 0.5353 GB, free: 3.625 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002834/0.59, allocations: 2.01 MB / 0.5372 GB, free: 1.605 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3017/0.8918, allocations: 7.104 MB / 0.5442 GB, free: 127.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.8919, allocations: 58.28 kB / 0.5442 GB, free: 127.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.398e-06/0.8919, allocations: 0 / 0.5442 GB, free: 127.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06287/0.9547, allocations: 19.62 MB / 0.5634 GB, free: 117.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.9549, allocations: 205.9 kB / 0.5636 GB, free: 116.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005267/0.9602, allocations: 4.461 MB / 0.5679 GB, free: 112.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004185/0.9606, allocations: 57.7 kB / 0.568 GB, free: 112.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.9622, allocations: 3.518 MB / 0.5714 GB, free: 108.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007348/0.9629, allocations: 0.8353 MB / 0.5722 GB, free: 107.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00138/0.9643, allocations: 1.341 MB / 0.5735 GB, free: 106.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.853e-05/0.9644, allocations: 301.1 kB / 0.5738 GB, free: 106.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002825/0.9672, allocations: 2.359 MB / 0.5761 GB, free: 103.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004336/0.9716, allocations: 6.171 MB / 0.5822 GB, free: 95.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008111/0.9797, allocations: 9.161 MB / 0.5911 GB, free: 84.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/0.9799, allocations: 44 kB / 0.5911 GB, free: 84.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01629/0.9961, allocations: 9.545 MB / 0.6005 GB, free: 75.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.426e-05/0.9963, allocations: 64 kB / 0.6005 GB, free: 75.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/0.9964, allocations: 132.9 kB / 0.6007 GB, free: 75.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003777/1, allocations: 1.377 MB / 0.602 GB, free: 73.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004559/1.005, allocations: 1.478 MB / 0.6034 GB, free: 72.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009839/1.015, allocations: 8.475 MB / 0.6117 GB, free: 63.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/1.02, allocations: 355.3 kB / 0.6121 GB, free: 63.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008065/1.02, allocations: 387.3 kB / 0.6124 GB, free: 62.91 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.003452/1.024, allocations: 2.494 MB / 0.6149 GB, free: 60.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007251/1.025, allocations: 399.4 kB / 0.6152 GB, free: 60.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007496/1.032, allocations: 4.122 MB / 0.6193 GB, free: 55.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.902e-05/1.032, allocations: 24 kB / 0.6193 GB, free: 55.85 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/1.032, allocations: 11.88 kB / 0.6193 GB, free: 55.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.834e-05/1.032, allocations: 12.11 kB / 0.6193 GB, free: 55.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/1.049, allocations: 10.13 MB / 0.6292 GB, free: 45.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/1.049, allocations: 4 kB / 0.6292 GB, free: 45.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/1.05, allocations: 324.1 kB / 0.6295 GB, free: 45.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003356/1.054, allocations: 1.144 MB / 0.6306 GB, free: 44.13 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/1.054, allocations: 44 kB / 0.6307 GB, free: 44.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008385/1.062, allocations: 7.159 MB / 0.6377 GB, free: 36.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/1.062, allocations: 11.92 kB / 0.6377 GB, free: 36.77 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/1.074, allocations: 6.907 MB / 0.6444 GB, free: 29.78 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/1.075, allocations: 455.8 kB / 0.6449 GB, free: 29.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008407/1.076, allocations: 40 kB / 0.6449 GB, free: 29.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001844/1.078, allocations: 107.9 kB / 0.645 GB, free: 29.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/1.078, allocations: 149.1 kB / 0.6451 GB, free: 29.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/1.078, allocations: 59.98 kB / 0.6452 GB, free: 28.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004065/1.082, allocations: 2.803 MB / 0.6479 GB, free: 26.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.082, allocations: 0 / 0.6479 GB, free: 26.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006568/1.089, allocations: 1.222 MB / 0.6491 GB, free: 24.95 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.0007765/1.09, allocations: 230 kB / 0.6494 GB, free: 24.72 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009199/1.099, allocations: 5.764 MB / 0.655 GB, free: 18.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.099, allocations: 5.875 kB / 0.655 GB, free: 18.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002575/1.102, allocations: 1.867 MB / 0.6568 GB, free: 17.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/1.105, allocations: 0.5407 MB / 0.6573 GB, free: 16.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/1.123, allocations: 11.54 MB / 0.6686 GB, free: 4.914 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/1.127, allocations: 3.844 MB / 0.6724 GB, free: 1.035 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.128, allocations: 315.4 kB / 0.6727 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/1.128, allocations: 0 / 0.6727 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of Templates: time 0.388/1.516, allocations: 90.95 MB / 0.7615 GB, free: 154.8 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches