Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001884/0.001884, allocations: 119.9 kB / 18.42 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002324/0.002324, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 64.7 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09471, allocations: 50.52 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2096/0.3044, allocations: 15.87 MB / 374.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.3146, allocations: 5.133 MB / 379.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002364/0.317, allocations: 113.7 kB / 380 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01062/0.3277, allocations: 4.43 MB / 384.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.3384, allocations: 2.492 MB / 386.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.3427, allocations: 1.147 MB / 388.1 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01464/0.3574, allocations: 8.095 MB / 396.2 MB, free: 2.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00931/0.3667, allocations: 5.311 MB / 401.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005884/0.3726, allocations: 2.46 MB / 404 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006801/0.3795, allocations: 3.357 MB / 407.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001788/0.3813, allocations: 0.5038 MB / 407.8 MB, free: 10 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004964/0.3863, allocations: 1.483 MB / 409.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004745/0.391, allocations: 2.938 MB / 412.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007303/0.3984, allocations: 3.325 MB / 415.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0153/0.4137, allocations: 10.3 MB / 425.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4137, allocations: 0 / 425.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4137, allocations: 4 kB / 425.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002935/0.414, allocations: 4 kB / 425.9 MB, free: 7.883 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01749/0.4315, allocations: 7.622 MB / 433.5 MB, free: 180 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.4316, allocations: 12.03 kB / 433.5 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/0.4456, allocations: 3.292 MB / 436.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01168/0.4574, allocations: 4.758 MB / 441.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004809/0.4579, allocations: 337.2 kB / 441.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002772/0.4607, allocations: 467.5 kB / 442.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02863/0.4893, allocations: 14.57 MB / 456.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000308/0.4897, allocations: 75.33 kB / 457 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0015/0.4912, allocations: 207.8 kB / 457.2 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005236/0.4965, allocations: 2.836 MB / 460 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.5242, allocations: 13.21 MB / 473.2 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08419/0.6084, allocations: 58.25 MB / 0.519 GB, free: 11.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01835/0.6268, allocations: 7.723 MB / 0.5266 GB, free: 3.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2237/0.8505, allocations: 5.045 MB / 0.5315 GB, free: 139 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02495/0.8755, allocations: 12.8 MB / 0.544 GB, free: 134.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.848e-05/0.8757, allocations: 71.39 kB / 0.5441 GB, free: 134.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 8.807e-06/0.8757, allocations: 0.5 kB / 0.5441 GB, free: 134.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.888/2.764, allocations: 411.6 MB / 0.946 GB, free: 87.56 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/2.764, allocations: 269.6 kB / 0.9463 GB, free: 87.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00608/2.77, allocations: 5.441 MB / 0.9516 GB, free: 82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001823/2.772, allocations: 109.7 kB / 0.9517 GB, free: 81.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/2.774, allocations: 3.938 MB / 0.9555 GB, free: 78.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002443/2.776, allocations: 2.01 MB / 0.9575 GB, free: 76.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004009/2.78, allocations: 2.18 MB / 0.9596 GB, free: 74.45 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.825e-05/2.78, allocations: 309 kB / 0.9599 GB, free: 74.14 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01281/2.793, allocations: 11.06 MB / 0.9707 GB, free: 63.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01473/2.808, allocations: 15.24 MB / 0.9856 GB, free: 45.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02833/2.836, allocations: 27.45 MB / 1.012 GB, free: 16.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/2.837, allocations: 40 kB / 1.012 GB, free: 16.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5225/3.359, allocations: 141.1 MB / 1.15 GB, free: 41.14 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.279e-05/3.359, allocations: 68 kB / 1.15 GB, free: 41.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/3.359, allocations: 136 kB / 1.15 GB, free: 40.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07316/3.432, allocations: 34.71 MB / 1.184 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005304/3.438, allocations: 1.571 MB / 1.186 GB, free: 4.668 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6485/4.086, allocations: 203.6 MB / 1.385 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01234/4.099, allocations: 1.715 MB / 1.386 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00229/4.101, allocations: 0.539 MB / 1.387 GB, free: 122.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005868/4.107, allocations: 3.1 MB / 1.39 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001819/4.109, allocations: 0.5742 MB / 1.391 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2864/4.395, allocations: 136.7 MB / 1.524 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.409e-05/4.395, allocations: 57.75 kB / 1.524 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001757/4.395, allocations: 60 kB / 1.524 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001253/4.396, allocations: 31.78 kB / 1.524 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7422/5.138, allocations: 206.1 MB / 1.725 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.356e-05/5.138, allocations: 4.781 kB / 1.725 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/5.139, allocations: 332.6 kB / 1.726 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06805/5.208, allocations: 33.43 MB / 1.758 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001492/5.209, allocations: 99.45 kB / 1.759 GB, free: 123.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4367/5.646, allocations: 186.2 MB / 1.94 GB, free: 109.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/5.646, allocations: 9.688 kB / 1.94 GB, free: 109.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4898/6.136, allocations: 152.6 MB / 2.089 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/6.137, allocations: 0.6185 MB / 2.09 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002589/6.14, allocations: 103 kB / 2.09 GB, free: 120.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008695/6.149, allocations: 1.491 MB / 2.092 GB, free: 120.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003621/6.152, allocations: 499.9 kB / 2.092 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001013/6.153, allocations: 144.8 kB / 2.092 GB, free: 120.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004771/6.158, allocations: 3.463 MB / 2.096 GB, free: 119.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.31e-07/6.158, allocations: 0 / 2.096 GB, free: 119.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01297/6.171, allocations: 3.841 MB / 2.099 GB, free: 119 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001557/6.173, allocations: 247.5 kB / 2.1 GB, free: 118.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05381/6.226, allocations: 33.83 MB / 2.133 GB, free: 90.37 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/6.226, allocations: 0 / 2.133 GB, free: 90.37 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03826/6.265, allocations: 20.55 MB / 2.153 GB, free: 69.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008262/6.273, allocations: 0.7993 MB / 2.153 GB, free: 69.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04268/6.316, allocations: 27.07 MB / 2.18 GB, free: 42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009456/6.325, allocations: 5.098 MB / 2.185 GB, free: 36.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005075/6.33, allocations: 2.049 MB / 2.187 GB, free: 34.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/6.332, allocations: 307.4 kB / 2.187 GB, free: 34.52 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/6.332, allocations: 4 kB / 2.187 GB, free: 34.52 MB / 478.1 MB Notification: Performance of Templates: time 0.7174/7.049, allocations: 272.7 MB / 2.453 GB, free: 112.4 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches