Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001935/0.001935, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002295/0.002295, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.546/1.546, allocations: 230.4 MB / 258.1 MB, free: 8.129 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-beta.om/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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 71.83 kB / 378.7 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2976, allocations: 53.31 MB / 432.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01874/0.3163, allocations: 15.96 MB / 448 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.3282, allocations: 5.165 MB / 453.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003537/0.3317, allocations: 111.7 kB / 453.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009301/0.341, allocations: 4.505 MB / 457.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007432/0.3484, allocations: 2.568 MB / 460.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003134/0.3516, allocations: 1.158 MB / 461.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01425/0.3658, allocations: 8.102 MB / 469.6 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006076/0.3719, allocations: 3.952 MB / 473.6 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004883/0.3768, allocations: 2.473 MB / 476 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006108/0.3829, allocations: 3.606 MB / 479.7 MB, free: 7.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001892/0.3848, allocations: 0.5039 MB / 480.2 MB, free: 7.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004001/0.3888, allocations: 1.533 MB / 481.7 MB, free: 5.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004391/0.3932, allocations: 3.038 MB / 484.7 MB, free: 2.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005619/0.3988, allocations: 3.333 MB / 488.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.4126, allocations: 10.33 MB / 498.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4126, allocations: 0 / 498.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4126, allocations: 0 / 498.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003381/0.413, allocations: 0 / 498.4 MB, free: 4.715 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.0223/0.4353, allocations: 7.829 MB / 0.4944 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4353, allocations: 8.031 kB / 0.4944 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01643/0.4517, allocations: 3.331 MB / 0.4976 GB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.4651, allocations: 4.772 MB / 0.5023 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003581/0.4654, allocations: 337.1 kB / 0.5026 GB, free: 4.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002022/0.4675, allocations: 471.5 kB / 0.5031 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03037/0.4978, allocations: 14.56 MB / 0.5173 GB, free: 4.305 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.498, allocations: 71.45 kB / 0.5173 GB, free: 4.234 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006632/0.4987, allocations: 215.8 kB / 0.5175 GB, free: 4.023 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00571/0.5044, allocations: 2.832 MB / 0.5203 GB, free: 1.184 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02915/0.5336, allocations: 13.22 MB / 0.5332 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3339/0.8675, allocations: 58.34 MB / 0.5902 GB, free: 51.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01554/0.883, allocations: 7.399 MB / 0.5974 GB, free: 44.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004678/0.8877, allocations: 4.543 MB / 0.6019 GB, free: 39.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0184/0.9061, allocations: 12.82 MB / 0.6144 GB, free: 26.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.526e-05/0.9062, allocations: 70.02 kB / 0.6144 GB, free: 26.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.29e-06/0.9062, allocations: 0 / 0.6144 GB, free: 26.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.273/3.179, allocations: 411.6 MB / 1.016 GB, free: 147.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/3.179, allocations: 265.7 kB / 1.017 GB, free: 147 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006797/3.186, allocations: 5.451 MB / 1.022 GB, free: 141.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002069/3.188, allocations: 113.7 kB / 1.022 GB, free: 141.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002409/3.19, allocations: 4.077 MB / 1.026 GB, free: 138.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003106/3.194, allocations: 2.116 MB / 1.028 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005723/3.199, allocations: 2.179 MB / 1.03 GB, free: 134.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.138e-05/3.199, allocations: 301.1 kB / 1.031 GB, free: 134.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/3.212, allocations: 11.06 MB / 1.041 GB, free: 123 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01673/3.229, allocations: 15.24 MB / 1.056 GB, free: 105.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03066/3.26, allocations: 27.45 MB / 1.083 GB, free: 76.64 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/3.26, allocations: 40 kB / 1.083 GB, free: 76.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6096/3.87, allocations: 140.8 MB / 1.221 GB, free: 133.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.438e-05/3.87, allocations: 68 kB / 1.221 GB, free: 133.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/3.87, allocations: 136 kB / 1.221 GB, free: 133.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07816/3.948, allocations: 34.71 MB / 1.255 GB, free: 99.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004996/3.953, allocations: 1.566 MB / 1.256 GB, free: 97.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5319/4.485, allocations: 203.7 MB / 1.455 GB, free: 98.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01283/4.498, allocations: 1.726 MB / 1.457 GB, free: 97.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001903/4.5, allocations: 0.5403 MB / 1.457 GB, free: 96.61 MB / 0.545 GB 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.005118/4.505, allocations: 3.089 MB / 1.46 GB, free: 94.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/4.506, allocations: 0.6055 MB / 1.461 GB, free: 93.81 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5674/5.074, allocations: 136.4 MB / 1.594 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.835e-05/5.074, allocations: 58.84 kB / 1.594 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001246/5.074, allocations: 59.78 kB / 1.594 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.609e-05/5.074, allocations: 29.86 kB / 1.594 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6566/5.731, allocations: 205.7 MB / 1.795 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-05/5.731, allocations: 5.5 kB / 1.795 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/5.732, allocations: 332.5 kB / 1.795 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07269/5.805, allocations: 33.44 MB / 1.828 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00157/5.807, allocations: 103 kB / 1.828 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4714/6.278, allocations: 186.3 MB / 2.01 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/6.278, allocations: 11.44 kB / 2.01 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3282/6.606, allocations: 152.3 MB / 2.159 GB, free: 26.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/6.608, allocations: 0.6573 MB / 2.16 GB, free: 25.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002915/6.611, allocations: 101.2 kB / 2.16 GB, free: 25.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01008/6.621, allocations: 1.489 MB / 2.161 GB, free: 24.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004345/6.625, allocations: 498.3 kB / 2.162 GB, free: 23.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001424/6.627, allocations: 144 kB / 2.162 GB, free: 23.42 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005328/6.632, allocations: 3.463 MB / 2.165 GB, free: 19.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.8e-07/6.632, allocations: 0 / 2.165 GB, free: 19.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01604/6.648, allocations: 3.842 MB / 2.169 GB, free: 16.15 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.00199/6.65, allocations: 246 kB / 2.169 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.3381/6.988, allocations: 32.75 MB / 2.201 GB, free: 182 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/6.988, allocations: 0 / 2.201 GB, free: 182 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.04056/7.029, allocations: 19.6 MB / 2.22 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007551/7.036, allocations: 0.7802 MB / 2.221 GB, free: 172.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04045/7.077, allocations: 27.47 MB / 2.248 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007333/7.084, allocations: 5.091 MB / 2.253 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004566/7.089, allocations: 2.06 MB / 2.255 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009102/7.09, allocations: 300 kB / 2.255 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.623e-06/7.09, allocations: 8 kB / 2.255 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.5615/7.651, allocations: 281.9 MB / 2.53 GB, free: 44.03 MB / 0.5606 GB " [Timeout remaining time 652] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 17.264024421107024]