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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.407e-05, allocations: 6.25 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0202/0.02022, allocations: 15.4 MB / 282.7 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.03249, allocations: 5.05 MB / 287.8 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002751/0.03524, allocations: 135.3 kB / 287.9 MB, free: 2.043 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1331/0.1683, allocations: 4.765 MB / 292.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007536/0.1759, allocations: 2.698 MB / 295.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.1789, allocations: 1.297 MB / 296.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.1913, allocations: 8.965 MB / 305.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007219/0.1985, allocations: 5.219 MB / 310.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008255/0.2068, allocations: 3.823 MB / 314.7 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005881/0.2127, allocations: 3.836 MB / 318.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001565/0.2142, allocations: 0.5195 MB / 319 MB, free: 3.043 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003169/0.2174, allocations: 1.47 MB / 320.5 MB, free: 1.637 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003424/0.2208, allocations: 3.23 MB / 323.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00382/0.2246, allocations: 2.031 MB / 325.8 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01496/0.2396, allocations: 10.59 MB / 336.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2396, allocations: 0 / 336.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2396, allocations: 0 / 336.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0004082/0.24, allocations: 0 / 336.4 MB, free: 2.391 MB / 282.7 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.02253/0.2626, allocations: 8.89 MB / 345.2 MB, free: 9.551 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.2626, allocations: 8.922 kB / 345.3 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/0.2801, allocations: 3.869 MB / 349.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/0.293, allocations: 4.251 MB / 353.4 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/0.2934, allocations: 342 kB / 353.7 MB, free: 1.332 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.2951, allocations: 467.1 kB / 354.2 MB, free: 0.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.3199, allocations: 9.435 MB / 363.6 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002331/0.3201, allocations: 70.66 kB / 363.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007746/0.3209, allocations: 213.7 kB / 363.9 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006396/0.3273, allocations: 2.834 MB / 366.7 MB, free: 3.473 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02057/0.3479, allocations: 5.785 MB / 372.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2438/0.5917, allocations: 64.43 MB / 436.9 MB, free: 105.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01549/0.6071, allocations: 3.958 MB / 440.9 MB, free: 105.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003327/0.6105, allocations: 1.497 MB / 442.4 MB, free: 105.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01732/0.6278, allocations: 7.702 MB / 450.1 MB, free: 104.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.6278, allocations: 73.44 kB / 450.2 MB, free: 104.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 7.955e-06/0.6279, allocations: 3.719 kB / 450.2 MB, free: 104.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.718/1.346, allocations: 200.3 MB / 0.6352 GB, free: 74.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/1.346, allocations: 266.7 kB / 0.6355 GB, free: 74.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00635/1.352, allocations: 5.622 MB / 0.641 GB, free: 70.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001988/1.354, allocations: 111.3 kB / 0.6411 GB, free: 70.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00277/1.357, allocations: 4.544 MB / 0.6455 GB, free: 68.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0027/1.36, allocations: 2.363 MB / 0.6478 GB, free: 66.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004361/1.364, allocations: 2.496 MB / 0.6502 GB, free: 64.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.769e-05/1.364, allocations: 476.8 kB / 0.6507 GB, free: 63.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007474/1.372, allocations: 4.099 MB / 0.6547 GB, free: 59.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009986/1.382, allocations: 10.68 MB / 0.6651 GB, free: 46.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01977/1.401, allocations: 16.82 MB / 0.6816 GB, free: 26.88 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001353/1.402, allocations: 40.69 kB / 0.6816 GB, free: 26.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4387/1.84, allocations: 113.4 MB / 0.7924 GB, free: 43.83 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.534e-05/1.84, allocations: 64 kB / 0.7924 GB, free: 43.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/1.84, allocations: 140 kB / 0.7925 GB, free: 43.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2936/2.134, allocations: 57.54 MB / 0.8487 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005569/2.14, allocations: 1.577 MB / 0.8503 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1728/2.312, allocations: 66.67 MB / 0.9154 GB, free: 86.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0153/2.328, allocations: 1.8 MB / 0.9171 GB, free: 84.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002836/2.33, allocations: 0.5349 MB / 0.9177 GB, free: 84.24 MB / 410.7 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.005675/2.336, allocations: 0.9585 MB / 0.9186 GB, free: 83.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002744/2.339, allocations: 0.7173 MB / 0.9193 GB, free: 82.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4621/2.801, allocations: 110.1 MB / 1.027 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/2.801, allocations: 54.62 kB / 1.027 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001743/2.801, allocations: 62.78 kB / 1.027 GB, free: 101 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001234/2.801, allocations: 28.47 kB / 1.027 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5377/3.339, allocations: 163.5 MB / 1.187 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.047e-05/3.339, allocations: 7.125 kB / 1.187 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/3.341, allocations: 328.8 kB / 1.187 GB, free: 112.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1358/3.477, allocations: 56.26 MB / 1.242 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001857/3.479, allocations: 101.3 kB / 1.242 GB, free: 73.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3149/3.793, allocations: 60.18 MB / 1.301 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.707e-05/3.793, allocations: 9.906 kB / 1.301 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3626/4.156, allocations: 114.1 MB / 1.412 GB, free: 38.51 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/4.158, allocations: 0.5615 MB / 1.413 GB, free: 38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002973/4.161, allocations: 99.06 kB / 1.413 GB, free: 37.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01112/4.172, allocations: 1.554 MB / 1.414 GB, free: 36.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005122/4.177, allocations: 0.5226 MB / 1.415 GB, free: 36.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001555/4.179, allocations: 140.5 kB / 1.415 GB, free: 35.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004784/4.184, allocations: 2.46 MB / 1.417 GB, free: 34.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/4.184, allocations: 0 / 1.417 GB, free: 34.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01644/4.2, allocations: 4.121 MB / 1.421 GB, free: 30.31 MB / 426.7 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.002225/4.202, allocations: 265 kB / 1.422 GB, free: 30.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.203/4.405, allocations: 21.05 MB / 1.442 GB, free: 117.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/4.405, allocations: 1.438 kB / 1.442 GB, free: 117.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03939/4.445, allocations: 14.44 MB / 1.456 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008195/4.453, allocations: 0.7166 MB / 1.457 GB, free: 116.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03709/4.49, allocations: 19.31 MB / 1.476 GB, free: 111.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008602/4.498, allocations: 4.179 MB / 1.48 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004431/4.503, allocations: 1.721 MB / 1.482 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/4.504, allocations: 293.2 kB / 1.482 GB, free: 111.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.254e-06/4.504, allocations: 0 / 1.482 GB, free: 111.1 MB / 426.7 MB Notification: Performance of Templates: time 0.5943/5.098, allocations: 293.5 MB / 1.769 GB, free: 109.1 MB / 426.7 MB " [Timeout remaining time 655] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.54879739205353]