Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2399, allocations: 53.37 MB / 431.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01904/0.2589, allocations: 15.96 MB / 447.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.27, allocations: 5.182 MB / 452.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.2726, allocations: 135.2 kB / 452.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009208/0.2818, allocations: 4.501 MB / 456.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007531/0.2893, allocations: 2.579 MB / 459.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003024/0.2924, allocations: 1.151 MB / 460.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01219/0.3045, allocations: 8.135 MB / 468.8 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007359/0.3119, allocations: 4.276 MB / 473.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004957/0.3169, allocations: 2.504 MB / 475.6 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005952/0.3228, allocations: 3.622 MB / 479.2 MB, free: 6.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001737/0.3246, allocations: 0.5 MB / 479.7 MB, free: 6.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003806/0.3284, allocations: 1.541 MB / 481.2 MB, free: 4.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004316/0.3327, allocations: 3.046 MB / 484.3 MB, free: 1.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006143/0.3388, allocations: 3.426 MB / 487.7 MB, free: 14.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01546/0.3543, allocations: 10.55 MB / 498.2 MB, free: 3.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3543, allocations: 0 / 498.2 MB, free: 3.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3543, allocations: 0 / 498.2 MB, free: 3.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003917/0.3547, allocations: 0 / 498.2 MB, free: 3.582 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.0227/0.3774, allocations: 8.023 MB / 0.4944 GB, free: 11.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3774, allocations: 8.031 kB / 0.4944 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002882/0.3803, allocations: 1.082 MB / 0.4955 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05228/0.4326, allocations: 8.558 MB / 0.5038 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.446, allocations: 5.447 MB / 0.5091 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003311/0.4463, allocations: 344.8 kB / 0.5095 GB, free: 11.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001649/0.448, allocations: 467.7 kB / 0.5099 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02709/0.4751, allocations: 14.48 MB / 0.5241 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002228/0.4753, allocations: 63.53 kB / 0.5241 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007704/0.4761, allocations: 215.8 kB / 0.5243 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00561/0.4817, allocations: 2.84 MB / 0.5271 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2397/0.7214, allocations: 13.01 MB / 0.5398 GB, free: 91.85 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06009/0.7815, allocations: 58.01 MB / 0.5964 GB, free: 44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01476/0.7962, allocations: 6.903 MB / 0.6032 GB, free: 37.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004391/0.8006, allocations: 4.556 MB / 0.6076 GB, free: 32.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/0.8165, allocations: 12.27 MB / 0.6196 GB, free: 20.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.8165, allocations: 72.64 kB / 0.6197 GB, free: 20.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.541e-06/0.8165, allocations: 0 / 0.6197 GB, free: 20.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.957/2.774, allocations: 411.2 MB / 1.021 GB, free: 141.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/2.774, allocations: 269.6 kB / 1.021 GB, free: 140.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00615/2.78, allocations: 5.496 MB / 1.027 GB, free: 135.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001462/2.781, allocations: 111.8 kB / 1.027 GB, free: 135.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001818/2.783, allocations: 4.154 MB / 1.031 GB, free: 132.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002108/2.785, allocations: 2.099 MB / 1.033 GB, free: 130.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003333/2.788, allocations: 2.08 MB / 1.035 GB, free: 128.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.125e-05/2.789, allocations: 308.9 kB / 1.035 GB, free: 128 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01126/2.8, allocations: 10.87 MB / 1.046 GB, free: 117.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01317/2.813, allocations: 14.99 MB / 1.061 GB, free: 100.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0258/2.839, allocations: 27.12 MB / 1.087 GB, free: 71.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-05/2.839, allocations: 40.28 kB / 1.087 GB, free: 71.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5078/3.347, allocations: 140.2 MB / 1.224 GB, free: 129.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/3.347, allocations: 64 kB / 1.224 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/3.347, allocations: 136 kB / 1.224 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07162/3.418, allocations: 34.59 MB / 1.258 GB, free: 94.86 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00444/3.423, allocations: 1.478 MB / 1.259 GB, free: 93.51 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4471/3.87, allocations: 202.8 MB / 1.458 GB, free: 95.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/3.883, allocations: 1.708 MB / 1.459 GB, free: 94.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/3.885, allocations: 0.522 MB / 1.46 GB, free: 94.09 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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 {(21,163,34.9%), (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.006338/3.891, allocations: 3.087 MB / 1.463 GB, free: 91.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001878/3.893, allocations: 0.6084 MB / 1.463 GB, free: 91.32 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.516/4.409, allocations: 136.2 MB / 1.596 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.27e-05/4.409, allocations: 67.56 kB / 1.596 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001274/4.409, allocations: 58.59 kB / 1.596 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.765e-05/4.409, allocations: 27.89 kB / 1.596 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5563/4.966, allocations: 205.6 MB / 1.797 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.244e-05/4.966, allocations: 3.719 kB / 1.797 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/4.967, allocations: 331.2 kB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06702/5.034, allocations: 33.29 MB / 1.83 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001703/5.036, allocations: 105.1 kB / 1.83 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4474/5.483, allocations: 185.5 MB / 2.011 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/5.483, allocations: 15.53 kB / 2.011 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3025/5.786, allocations: 152 MB / 2.16 GB, free: 24.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/5.788, allocations: 0.5804 MB / 2.16 GB, free: 24.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00255/5.79, allocations: 102 kB / 2.16 GB, free: 23.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008773/5.799, allocations: 1.478 MB / 2.162 GB, free: 22.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00382/5.803, allocations: 0.5249 MB / 2.162 GB, free: 21.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001039/5.804, allocations: 140 kB / 2.162 GB, free: 21.81 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004614/5.808, allocations: 3.517 MB / 2.166 GB, free: 18.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/5.808, allocations: 4 kB / 2.166 GB, free: 18.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01368/5.822, allocations: 3.779 MB / 2.17 GB, free: 14.54 MB / 0.5606 GB 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.5767/6.399, allocations: 152.5 MB / 2.319 GB, free: 70.39 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05186/6.451, allocations: 32.61 MB / 2.35 GB, free: 37.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/6.451, allocations: 2.078 kB / 2.35 GB, free: 37.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03567/6.486, allocations: 19.56 MB / 2.369 GB, free: 18.38 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006088/6.492, allocations: 0.8236 MB / 2.37 GB, free: 17.58 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.159/7.651, allocations: 352.9 MB / 2.715 GB, free: 79.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005233/7.657, allocations: 5.096 MB / 2.72 GB, free: 74.58 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003789/7.661, allocations: 2.065 MB / 2.722 GB, free: 72.64 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002644/7.663, allocations: 3.026 MB / 2.725 GB, free: 69.61 MB / 0.5606 GB Notification: Performance of SimCode: time 7.72e-07/7.663, allocations: 0 / 2.725 GB, free: 69.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8154/8.479, allocations: 344.8 MB / 3.062 GB, free: 136.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.35/40.83, allocations: 0 / 3.062 GB, free: 136.6 MB / 0.5606 GB " [Timeout remaining time 619] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 44.84889116999693]