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.001629/0.001629, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001961/0.001961, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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.423/1.423, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 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 0.00211/0.00211, allocations: 47.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2813, allocations: 52.14 MB / 420.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01892/0.3002, allocations: 16.01 MB / 436.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3121, allocations: 5.151 MB / 442 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.3154, allocations: 111.6 kB / 442.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008707/0.3241, allocations: 4.516 MB / 446.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008333/0.3325, allocations: 2.603 MB / 449.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003482/0.3359, allocations: 1.154 MB / 450.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01261/0.3486, allocations: 7.961 MB / 458.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007253/0.3558, allocations: 3.956 MB / 462.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005431/0.3612, allocations: 2.48 MB / 464.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005961/0.3672, allocations: 3.625 MB / 468.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001899/0.3691, allocations: 0.5039 MB / 468.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004083/0.3732, allocations: 1.541 MB / 470.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004311/0.3775, allocations: 3.046 MB / 473.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00647/0.384, allocations: 3.352 MB / 476.9 MB, free: 6.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01425/0.3982, allocations: 10.39 MB / 487.3 MB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3982, allocations: 0 / 487.3 MB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3982, allocations: 0 / 487.3 MB, free: 12.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003231/0.3985, allocations: 4 kB / 487.3 MB, free: 12.4 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.01786/0.4164, allocations: 7.797 MB / 495.1 MB, free: 4.508 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4164, allocations: 8.031 kB / 495.1 MB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01423/0.4307, allocations: 3.226 MB / 498.3 MB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.4416, allocations: 4.85 MB / 0.4914 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.4419, allocations: 336.8 kB / 0.4917 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001925/0.4439, allocations: 471.6 kB / 0.4921 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02998/0.4738, allocations: 14.56 MB / 0.5064 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002275/0.4741, allocations: 75.41 kB / 0.5064 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006715/0.4747, allocations: 219.8 kB / 0.5066 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005539/0.4803, allocations: 2.836 MB / 0.5094 GB, free: 8.922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02733/0.5076, allocations: 13.21 MB / 0.5223 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3363/0.8439, allocations: 58.35 MB / 0.5793 GB, free: 62.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01621/0.8601, allocations: 7.387 MB / 0.5865 GB, free: 57.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004851/0.8649, allocations: 4.549 MB / 0.591 GB, free: 53.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01687/0.8818, allocations: 12.82 MB / 0.6035 GB, free: 40.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/0.8819, allocations: 72.64 kB / 0.6035 GB, free: 40.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.542e-06/0.8819, allocations: 0 / 0.6035 GB, free: 40.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.064/2.946, allocations: 411.4 MB / 1.005 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/2.946, allocations: 273.6 kB / 1.006 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006659/2.953, allocations: 5.458 MB / 1.011 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001689/2.955, allocations: 113.5 kB / 1.011 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002092/2.957, allocations: 4.081 MB / 1.015 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002497/2.959, allocations: 2.116 MB / 1.017 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004041/2.963, allocations: 2.187 MB / 1.019 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.225e-05/2.963, allocations: 301.1 kB / 1.019 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01146/2.975, allocations: 11.06 MB / 1.03 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01394/2.989, allocations: 15.24 MB / 1.045 GB, free: 90.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02756/3.016, allocations: 27.45 MB / 1.072 GB, free: 61.15 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.666e-05/3.016, allocations: 40 kB / 1.072 GB, free: 61.11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5339/3.55, allocations: 140.7 MB / 1.209 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/3.55, allocations: 64 kB / 1.21 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/3.551, allocations: 140 kB / 1.21 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07416/3.625, allocations: 34.69 MB / 1.244 GB, free: 79.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004943/3.63, allocations: 1.569 MB / 1.245 GB, free: 78.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4858/4.116, allocations: 203.6 MB / 1.444 GB, free: 92.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01361/4.129, allocations: 1.722 MB / 1.446 GB, free: 90.33 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002793/4.132, allocations: 0.54 MB / 1.446 GB, free: 89.79 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.00655/4.138, allocations: 3.088 MB / 1.449 GB, free: 86.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/4.14, allocations: 0.6116 MB / 1.45 GB, free: 86.51 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5332/4.673, allocations: 136.3 MB / 1.583 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.546e-05/4.674, allocations: 62.08 kB / 1.583 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001181/4.674, allocations: 56 kB / 1.583 GB, free: 149.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.731e-05/4.674, allocations: 27.91 kB / 1.583 GB, free: 149.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5802/5.254, allocations: 205.6 MB / 1.784 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.295e-05/5.254, allocations: 3.969 kB / 1.784 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/5.256, allocations: 338 kB / 1.784 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06869/5.324, allocations: 33.42 MB / 1.817 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001795/5.326, allocations: 100.9 kB / 1.817 GB, free: 120.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.436/5.762, allocations: 186.3 MB / 1.999 GB, free: 135.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/5.762, allocations: 15.31 kB / 1.999 GB, free: 135.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5242/6.286, allocations: 152.2 MB / 2.147 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/6.288, allocations: 0.656 MB / 2.148 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002049/6.29, allocations: 103.2 kB / 2.148 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007915/6.298, allocations: 1.483 MB / 2.15 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003547/6.301, allocations: 0.4938 MB / 2.15 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008149/6.302, allocations: 140.1 kB / 2.15 GB, free: 152 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004188/6.306, allocations: 3.467 MB / 2.154 GB, free: 151.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/6.306, allocations: 0 / 2.154 GB, free: 151.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01271/6.319, allocations: 3.856 MB / 2.157 GB, free: 151.8 MB / 0.545 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.001785/6.321, allocations: 249.7 kB / 2.158 GB, free: 151.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05014/6.371, allocations: 32.75 MB / 2.19 GB, free: 138.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/6.371, allocations: 0 / 2.19 GB, free: 138.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03503/6.406, allocations: 19.58 MB / 2.209 GB, free: 123.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005821/6.412, allocations: 0.7836 MB / 2.209 GB, free: 123 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03352/6.445, allocations: 27.47 MB / 2.236 GB, free: 98.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005108/6.45, allocations: 5.1 MB / 2.241 GB, free: 93.83 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003714/6.454, allocations: 2.062 MB / 2.243 GB, free: 91.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006689/6.455, allocations: 299.4 kB / 2.244 GB, free: 91.55 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/6.455, allocations: 0 / 2.244 GB, free: 91.55 MB / 0.545 GB Notification: Performance of Templates: time 0.6138/7.068, allocations: 281.9 MB / 2.519 GB, free: 15.85 MB / 0.5606 GB " [Timeout remaining time 653] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] 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: 16.38879323657602]