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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001253, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 63.89 kB / 378.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2423, allocations: 53.41 MB / 432 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01833/0.2606, allocations: 15.96 MB / 447.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.2729, allocations: 5.184 MB / 453.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003498/0.2764, allocations: 135.2 kB / 453.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00936/0.2857, allocations: 4.505 MB / 457.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008016/0.2937, allocations: 2.575 MB / 460.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003085/0.2968, allocations: 1.162 MB / 461.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01345/0.3103, allocations: 8.128 MB / 469.6 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007401/0.3177, allocations: 4.283 MB / 473.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005048/0.3227, allocations: 2.508 MB / 476.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006056/0.3288, allocations: 3.606 MB / 480 MB, free: 6.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001854/0.3306, allocations: 0.5078 MB / 480.5 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003926/0.3345, allocations: 1.541 MB / 482.1 MB, free: 4.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005056/0.3396, allocations: 3.046 MB / 485.1 MB, free: 1.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007747/0.3474, allocations: 3.414 MB / 488.5 MB, free: 13.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01456/0.3619, allocations: 10.55 MB / 499.1 MB, free: 3.297 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3619, allocations: 4 kB / 499.1 MB, free: 3.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3619, allocations: 0 / 499.1 MB, free: 3.293 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004045/0.3623, allocations: 0 / 499.1 MB, free: 3.293 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.02261/0.3849, allocations: 8.023 MB / 0.4952 GB, free: 11.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.385, allocations: 12.03 kB / 0.4952 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000213/0.3852, allocations: 175.5 kB / 0.4954 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00301/0.3882, allocations: 1.086 MB / 0.4965 GB, free: 9.906 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05614/0.4443, allocations: 8.558 MB / 0.5048 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01255/0.4569, allocations: 5.455 MB / 0.5101 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003589/0.4572, allocations: 336.8 kB / 0.5105 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001764/0.459, allocations: 471.7 kB / 0.5109 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02929/0.4883, allocations: 14.48 MB / 0.525 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003211/0.4886, allocations: 79.41 kB / 0.5251 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00141/0.49, allocations: 215.8 kB / 0.5253 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005865/0.4959, allocations: 2.84 MB / 0.5281 GB, free: 8.457 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2263/0.7222, allocations: 13.01 MB / 0.5408 GB, free: 91.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05765/0.7798, allocations: 58.04 MB / 0.5975 GB, free: 43.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01534/0.7952, allocations: 6.899 MB / 0.6042 GB, free: 36.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004771/0.7999, allocations: 4.555 MB / 0.6087 GB, free: 31.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/0.8168, allocations: 12.28 MB / 0.6207 GB, free: 19.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.8168, allocations: 68.64 kB / 0.6207 GB, free: 19.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.801e-06/0.8168, allocations: 0 / 0.6207 GB, free: 19.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.973/2.79, allocations: 411.2 MB / 1.022 GB, free: 140.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.255e-05/2.79, allocations: 269.7 kB / 1.023 GB, free: 140.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005992/2.796, allocations: 5.499 MB / 1.028 GB, free: 134.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001917/2.798, allocations: 109.7 kB / 1.028 GB, free: 134.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002346/2.801, allocations: 4.164 MB / 1.032 GB, free: 131.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002451/2.803, allocations: 2.098 MB / 1.034 GB, free: 129.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003532/2.807, allocations: 2.077 MB / 1.036 GB, free: 127.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.797e-05/2.807, allocations: 301.1 kB / 1.036 GB, free: 127.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01093/2.818, allocations: 10.88 MB / 1.047 GB, free: 116.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01346/2.831, allocations: 14.99 MB / 1.062 GB, free: 99.53 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02518/2.856, allocations: 27.12 MB / 1.088 GB, free: 70.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-05/2.856, allocations: 40 kB / 1.088 GB, free: 70.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.503/3.359, allocations: 140.2 MB / 1.225 GB, free: 128.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.095e-05/3.359, allocations: 64 kB / 1.225 GB, free: 128.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/3.359, allocations: 139.6 kB / 1.225 GB, free: 128.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07254/3.432, allocations: 34.58 MB / 1.259 GB, free: 94.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004477/3.437, allocations: 1.483 MB / 1.261 GB, free: 92.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4355/3.872, allocations: 202.8 MB / 1.459 GB, free: 95.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/3.884, allocations: 1.704 MB / 1.46 GB, free: 94.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00216/3.886, allocations: 0.5215 MB / 1.461 GB, free: 94.14 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.005745/3.892, allocations: 3.086 MB / 1.464 GB, free: 91.38 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/3.894, allocations: 0.6097 MB / 1.464 GB, free: 91.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5537/4.447, allocations: 136.2 MB / 1.597 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.467e-05/4.447, allocations: 66.25 kB / 1.597 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001548/4.448, allocations: 58.56 kB / 1.597 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000114/4.448, allocations: 31.05 kB / 1.597 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5548/5.002, allocations: 205.6 MB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.34e-05/5.003, allocations: 7.812 kB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/5.004, allocations: 333.6 kB / 1.799 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06551/5.069, allocations: 33.29 MB / 1.831 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001548/5.071, allocations: 101.1 kB / 1.831 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4176/5.489, allocations: 185.5 MB / 2.012 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/5.489, allocations: 11.56 kB / 2.012 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3053/5.794, allocations: 152 MB / 2.161 GB, free: 24.42 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/5.795, allocations: 0.5782 MB / 2.161 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002464/5.798, allocations: 100 kB / 2.161 GB, free: 23.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009757/5.808, allocations: 1.484 MB / 2.163 GB, free: 22.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004307/5.812, allocations: 0.5257 MB / 2.163 GB, free: 21.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001285/5.813, allocations: 136 kB / 2.164 GB, free: 21.61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004493/5.818, allocations: 3.517 MB / 2.167 GB, free: 18.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/5.818, allocations: 0 / 2.167 GB, free: 18.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01211/5.83, allocations: 3.783 MB / 2.171 GB, free: 14.34 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.5387/6.368, allocations: 152.5 MB / 2.32 GB, free: 70.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.04979/6.418, allocations: 32.62 MB / 2.351 GB, free: 37.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/6.418, allocations: 3.594 kB / 2.351 GB, free: 37.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03488/6.453, allocations: 19.55 MB / 2.371 GB, free: 18.17 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005526/6.459, allocations: 0.8283 MB / 2.371 GB, free: 17.37 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.118/7.577, allocations: 353 MB / 2.716 GB, free: 80.13 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006125/7.583, allocations: 5.105 MB / 2.721 GB, free: 75.03 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004134/7.587, allocations: 2.057 MB / 2.723 GB, free: 73.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003316/7.591, allocations: 3.053 MB / 2.726 GB, free: 70.05 MB / 0.5606 GB Notification: Performance of SimCode: time 1.233e-06/7.591, allocations: 4 kB / 2.726 GB, free: 70.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.799/8.39, allocations: 344.8 MB / 3.063 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.93/39.32, allocations: 4.062 kB / 3.063 GB, free: 137.9 MB / 0.5606 GB " [Timeout remaining time 620] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.6368148229667]