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.001231/0.001231, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001339/0.001339, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.341/1.341, allocations: 230.6 MB / 258.3 MB, free: 8.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2558, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01768/0.2735, allocations: 15.95 MB / 447.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009996/0.2835, allocations: 5.186 MB / 453.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.2856, allocations: 131.3 kB / 453.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008043/0.2936, allocations: 4.505 MB / 457.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006257/0.2999, allocations: 2.578 MB / 460.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.3025, allocations: 1.158 MB / 461.4 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.314, allocations: 8.124 MB / 469.6 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005308/0.3193, allocations: 4.287 MB / 473.9 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003589/0.3229, allocations: 2.5 MB / 476.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004849/0.3277, allocations: 3.614 MB / 480 MB, free: 6.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.3287, allocations: 0.5039 MB / 480.5 MB, free: 6.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002679/0.3314, allocations: 1.541 MB / 482 MB, free: 4.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002887/0.3343, allocations: 3.046 MB / 485.1 MB, free: 1.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004411/0.3387, allocations: 3.418 MB / 488.5 MB, free: 14.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.3512, allocations: 10.55 MB / 499 MB, free: 3.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.3512, allocations: 0 / 499 MB, free: 3.477 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3512, allocations: 0 / 499 MB, free: 3.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002957/0.3515, allocations: 4 kB / 499 MB, free: 3.473 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.01915/0.3707, allocations: 8.023 MB / 0.4952 GB, free: 11.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3707, allocations: 8.031 kB / 0.4952 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001928/0.3709, allocations: 175.6 kB / 0.4953 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001822/0.3727, allocations: 1.086 MB / 0.4964 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05433/0.4271, allocations: 8.558 MB / 0.5048 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.4392, allocations: 5.451 MB / 0.5101 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002962/0.4395, allocations: 344.7 kB / 0.5104 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.4409, allocations: 467.7 kB / 0.5109 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02592/0.4668, allocations: 14.48 MB / 0.525 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/0.467, allocations: 79.41 kB / 0.5251 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005954/0.4676, allocations: 207.8 kB / 0.5253 GB, free: 11.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005566/0.4732, allocations: 2.836 MB / 0.528 GB, free: 8.648 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2169/0.6901, allocations: 13.02 MB / 0.5408 GB, free: 92.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05992/0.75, allocations: 58.05 MB / 0.5974 GB, free: 43.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01497/0.7649, allocations: 6.892 MB / 0.6042 GB, free: 36.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004382/0.7693, allocations: 4.556 MB / 0.6086 GB, free: 32.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.784, allocations: 12.28 MB / 0.6206 GB, free: 19.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.784, allocations: 72.69 kB / 0.6207 GB, free: 19.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.099e-06/0.784, allocations: 0 / 0.6207 GB, free: 19.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.934/2.718, allocations: 411.2 MB / 1.022 GB, free: 140.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/2.718, allocations: 265.6 kB / 1.022 GB, free: 140.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005842/2.724, allocations: 5.496 MB / 1.028 GB, free: 135.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001433/2.725, allocations: 117.1 kB / 1.028 GB, free: 135 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001621/2.727, allocations: 4.161 MB / 1.032 GB, free: 132 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002052/2.729, allocations: 2.097 MB / 1.034 GB, free: 129.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003407/2.732, allocations: 2.083 MB / 1.036 GB, free: 127.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.663e-05/2.732, allocations: 301.1 kB / 1.036 GB, free: 127.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01104/2.743, allocations: 10.88 MB / 1.047 GB, free: 116.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01253/2.756, allocations: 14.99 MB / 1.062 GB, free: 99.86 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02588/2.782, allocations: 27.13 MB / 1.088 GB, free: 70.89 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/2.782, allocations: 40 kB / 1.088 GB, free: 70.86 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4921/3.274, allocations: 140.2 MB / 1.225 GB, free: 128.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.399e-05/3.274, allocations: 67.56 kB / 1.225 GB, free: 128.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001611/3.274, allocations: 136 kB / 1.225 GB, free: 128.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07251/3.347, allocations: 34.58 MB / 1.259 GB, free: 94.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/3.351, allocations: 1.475 MB / 1.26 GB, free: 93.13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.459/3.81, allocations: 202.8 MB / 1.459 GB, free: 95.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.012/3.822, allocations: 1.706 MB / 1.46 GB, free: 94.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001788/3.824, allocations: 0.5202 MB / 1.461 GB, free: 94.22 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.005344/3.829, allocations: 3.093 MB / 1.464 GB, free: 91.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001667/3.831, allocations: 0.6116 MB / 1.464 GB, free: 91.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4852/4.316, allocations: 136.2 MB / 1.597 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.075e-05/4.316, allocations: 60.72 kB / 1.597 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001391/4.316, allocations: 61.91 kB / 1.597 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001185/4.316, allocations: 31.86 kB / 1.597 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5666/4.883, allocations: 205.6 MB / 1.798 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.203e-05/4.883, allocations: 6.594 kB / 1.798 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/4.885, allocations: 326.4 kB / 1.799 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06822/4.953, allocations: 33.29 MB / 1.831 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001954/4.955, allocations: 104 kB / 1.831 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4001/5.355, allocations: 185.5 MB / 2.012 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/5.355, allocations: 3.781 kB / 2.012 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3021/5.657, allocations: 152 MB / 2.161 GB, free: 24.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/5.659, allocations: 0.5839 MB / 2.161 GB, free: 23.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002759/5.661, allocations: 99.73 kB / 2.161 GB, free: 23.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008865/5.67, allocations: 1.482 MB / 2.163 GB, free: 22.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003533/5.674, allocations: 0.5219 MB / 2.163 GB, free: 21.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000973/5.675, allocations: 144 kB / 2.164 GB, free: 21.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004279/5.679, allocations: 3.52 MB / 2.167 GB, free: 18.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/5.679, allocations: 0 / 2.167 GB, free: 18.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01133/5.69, allocations: 3.781 MB / 2.171 GB, free: 14.23 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.5208/6.211, allocations: 152.5 MB / 2.32 GB, free: 70.41 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.04934/6.26, allocations: 32.61 MB / 2.351 GB, free: 37.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/6.26, allocations: 0 / 2.351 GB, free: 37.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03406/6.294, allocations: 19.56 MB / 2.371 GB, free: 18.37 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00626/6.301, allocations: 0.8309 MB / 2.371 GB, free: 17.55 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.092/7.392, allocations: 352.9 MB / 2.716 GB, free: 79.44 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004978/7.397, allocations: 5.097 MB / 2.721 GB, free: 74.35 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003729/7.401, allocations: 2.072 MB / 2.723 GB, free: 72.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002825/7.404, allocations: 3.053 MB / 2.726 GB, free: 69.35 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/7.404, allocations: 0 / 2.726 GB, free: 69.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7731/8.177, allocations: 344.8 MB / 3.063 GB, free: 136.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.15/38.32, allocations: 7.438 kB / 3.063 GB, free: 136.3 MB / 0.5606 GB " [Timeout remaining time 621] (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: 43.645532466995064]