Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 110.3 kB / 17.16 MB, free: 6.082 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.001651/0.001651, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 49.89 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09409/0.09526, allocations: 49.45 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.256/0.3513, allocations: 75.33 MB / 425.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03818/0.3896, allocations: 14.94 MB / 440.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01821/0.4078, allocations: 339.1 kB / 440.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009024/0.4169, allocations: 4.433 MB / 445.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007013/0.424, allocations: 2.375 MB / 447.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.4269, allocations: 1.057 MB / 448.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01411/0.441, allocations: 11.19 MB / 459.7 MB, free: 7.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00777/0.4488, allocations: 5.189 MB / 464.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004457/0.4533, allocations: 2.192 MB / 467.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005396/0.4588, allocations: 3.594 MB / 470.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001712/0.4605, allocations: 356 kB / 471 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.4642, allocations: 1.404 MB / 472.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003607/0.4678, allocations: 2.836 MB / 475.3 MB, free: 7.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005506/0.4733, allocations: 3.2 MB / 478.5 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009991/0.4833, allocations: 8.123 MB / 486.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.4834, allocations: 0 / 486.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.846e-06/0.4834, allocations: 0 / 486.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004131/0.4839, allocations: 3.938 kB / 486.6 MB, free: 12.09 MB / 398.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.02256/0.5064, allocations: 7.609 MB / 494.2 MB, free: 4.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.5065, allocations: 8.031 kB / 494.2 MB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/0.5221, allocations: 3.186 MB / 497.4 MB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01137/0.5335, allocations: 4.723 MB / 0.4904 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003937/0.534, allocations: 341.3 kB / 0.4907 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00206/0.5361, allocations: 471.5 kB / 0.4911 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03163/0.5677, allocations: 14.56 MB / 0.5054 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003839/0.5681, allocations: 75.33 kB / 0.5054 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001944/0.5701, allocations: 215.8 kB / 0.5056 GB, free: 11.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006025/0.5762, allocations: 2.832 MB / 0.5084 GB, free: 8.965 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02979/0.606, allocations: 13.22 MB / 0.5213 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2945/0.9005, allocations: 58.5 MB / 0.5784 GB, free: 111.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/0.9168, allocations: 7.74 MB / 0.586 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005288/0.9222, allocations: 5.051 MB / 0.5909 GB, free: 104.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/0.9398, allocations: 12.82 MB / 0.6034 GB, free: 94.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.9399, allocations: 64.7 kB / 0.6035 GB, free: 93.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.36e-06/0.9399, allocations: 0 / 0.6035 GB, free: 93.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.987/2.927, allocations: 411.4 MB / 1.005 GB, free: 16.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/2.927, allocations: 276.9 kB / 1.006 GB, free: 16.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007625/2.935, allocations: 5.445 MB / 1.011 GB, free: 11.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001923/2.937, allocations: 113.7 kB / 1.011 GB, free: 10.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/2.939, allocations: 3.935 MB / 1.015 GB, free: 7.066 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2341/3.174, allocations: 2.012 MB / 1.017 GB, free: 135.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006141/3.18, allocations: 2.174 MB / 1.019 GB, free: 135.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.26e-05/3.18, allocations: 305.4 kB / 1.019 GB, free: 135.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01904/3.199, allocations: 11.06 MB / 1.03 GB, free: 131.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01921/3.218, allocations: 15.24 MB / 1.045 GB, free: 121.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03326/3.251, allocations: 27.45 MB / 1.072 GB, free: 101.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002181/3.252, allocations: 41.75 kB / 1.072 GB, free: 101.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5687/3.82, allocations: 141.1 MB / 1.209 GB, free: 130.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/3.821, allocations: 64.12 kB / 1.21 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/3.821, allocations: 141.8 kB / 1.21 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08067/3.901, allocations: 34.69 MB / 1.244 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005401/3.907, allocations: 1.569 MB / 1.245 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4674/4.374, allocations: 190.6 MB / 1.431 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01397/4.388, allocations: 1.723 MB / 1.433 GB, free: 82.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003394/4.392, allocations: 0.5325 MB / 1.433 GB, free: 81.66 MB / 462.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.01103/4.403, allocations: 3.102 MB / 1.436 GB, free: 79.13 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002692/4.406, allocations: 0.5691 MB / 1.437 GB, free: 78.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5486/4.954, allocations: 136.7 MB / 1.57 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.474e-05/4.954, allocations: 60 kB / 1.57 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001667/4.955, allocations: 56 kB / 1.571 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001148/4.955, allocations: 35.17 kB / 1.571 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.563/5.518, allocations: 206.2 MB / 1.772 GB, free: 98.03 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-05/5.518, allocations: 8 kB / 1.772 GB, free: 98.02 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/5.519, allocations: 331.3 kB / 1.772 GB, free: 97.71 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07308/5.592, allocations: 33.85 MB / 1.805 GB, free: 68.45 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001957/5.594, allocations: 99.98 kB / 1.805 GB, free: 68.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5083/6.103, allocations: 173.4 MB / 1.975 GB, free: 65.85 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/6.103, allocations: 15.41 kB / 1.975 GB, free: 65.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5701/6.673, allocations: 152.5 MB / 2.124 GB, free: 81.94 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/6.675, allocations: 0.6269 MB / 2.124 GB, free: 81.61 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003188/6.678, allocations: 96 kB / 2.124 GB, free: 81.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009919/6.688, allocations: 1.491 MB / 2.126 GB, free: 80.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004552/6.692, allocations: 0.4904 MB / 2.126 GB, free: 79.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001791/6.694, allocations: 143.2 kB / 2.127 GB, free: 79.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006753/6.701, allocations: 3.467 MB / 2.13 GB, free: 75.95 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.42e-07/6.701, allocations: 3.828 kB / 2.13 GB, free: 75.95 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01492/6.716, allocations: 3.861 MB / 2.134 GB, free: 72.1 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.002023/6.718, allocations: 246.7 kB / 2.134 GB, free: 71.86 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05228/6.77, allocations: 33.71 MB / 2.167 GB, free: 38.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/6.77, allocations: 2 kB / 2.167 GB, free: 38.31 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03548/6.806, allocations: 20.51 MB / 2.187 GB, free: 17.81 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007022/6.813, allocations: 0.7458 MB / 2.188 GB, free: 17.08 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2308/7.044, allocations: 30.98 MB / 2.218 GB, free: 131.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008281/7.052, allocations: 5.064 MB / 2.223 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/7.053, allocations: 359 kB / 2.223 GB, free: 130.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/7.053, allocations: 1.969 kB / 2.223 GB, free: 130.8 MB / 478.1 MB Notification: Performance of Templates: time 0.5346/7.588, allocations: 255.6 MB / 2.473 GB, free: 50.24 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches