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.001626/0.001626, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001954/0.001954, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.459/1.459, allocations: 230.6 MB / 258.2 MB, free: 7.797 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: 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_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2173, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01682/0.2341, allocations: 13.74 MB / 446.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01/0.2441, allocations: 4.937 MB / 451 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.2456, allocations: 139.2 kB / 451.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008047/0.2537, allocations: 4.314 MB / 455.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006355/0.26, allocations: 2.589 MB / 458.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.2625, allocations: 1.158 MB / 459.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.2729, allocations: 8.123 MB / 467.3 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005029/0.278, allocations: 4.286 MB / 471.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003357/0.2813, allocations: 2.5 MB / 474.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004629/0.2859, allocations: 3.622 MB / 477.7 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009802/0.2869, allocations: 0.5078 MB / 478.2 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002547/0.2895, allocations: 1.397 MB / 479.6 MB, free: 7.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002852/0.2923, allocations: 3.042 MB / 482.7 MB, free: 4.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.2951, allocations: 2.505 MB / 485.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.3059, allocations: 10.38 MB / 495.6 MB, free: 7.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3059, allocations: 0 / 495.6 MB, free: 7.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3059, allocations: 4 kB / 495.6 MB, free: 7.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001556/0.306, allocations: 0 / 495.6 MB, free: 7.203 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.01733/0.3234, allocations: 7.758 MB / 0.4915 GB, free: 15.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3234, allocations: 8.031 kB / 0.4915 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01559/0.339, allocations: 3.335 MB / 0.4948 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/0.3512, allocations: 4.692 MB / 0.4994 GB, free: 7.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.3515, allocations: 341.1 kB / 0.4997 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/0.353, allocations: 479.5 kB / 0.5002 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02702/0.38, allocations: 14.64 MB / 0.5145 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001928/0.3802, allocations: 67.48 kB / 0.5145 GB, free: 6.781 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005997/0.3808, allocations: 215.8 kB / 0.5147 GB, free: 6.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005788/0.3866, allocations: 2.84 MB / 0.5175 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02717/0.4137, allocations: 13.14 MB / 0.5303 GB, free: 6.555 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2549/0.6687, allocations: 53.9 MB / 0.583 GB, free: 57.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/0.6838, allocations: 6.94 MB / 0.5898 GB, free: 50.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004198/0.688, allocations: 4.587 MB / 0.5942 GB, free: 46.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/0.7048, allocations: 11.46 MB / 0.6054 GB, free: 34.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.7048, allocations: 64.7 kB / 0.6055 GB, free: 34.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.183e-06/0.7048, allocations: 0 / 0.6055 GB, free: 34.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.097/2.801, allocations: 411.5 MB / 1.007 GB, free: 155.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/2.801, allocations: 265.3 kB / 1.008 GB, free: 155 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004922/2.806, allocations: 4.965 MB / 1.012 GB, free: 150.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001434/2.808, allocations: 113.7 kB / 1.013 GB, free: 150.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001473/2.809, allocations: 4.113 MB / 1.017 GB, free: 147.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00195/2.811, allocations: 2.106 MB / 1.019 GB, free: 145 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003739/2.815, allocations: 2.191 MB / 1.021 GB, free: 142.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.894e-05/2.815, allocations: 301.1 kB / 1.021 GB, free: 142.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01139/2.826, allocations: 11.06 MB / 1.032 GB, free: 131.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.84, allocations: 15.32 MB / 1.047 GB, free: 114.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02698/2.866, allocations: 27.45 MB / 1.074 GB, free: 84.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/2.867, allocations: 40 kB / 1.074 GB, free: 84.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5285/3.395, allocations: 140.8 MB / 1.211 GB, free: 142.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.734e-05/3.395, allocations: 65.41 kB / 1.211 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/3.395, allocations: 140 kB / 1.211 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07824/3.474, allocations: 34.68 MB / 1.245 GB, free: 108 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004553/3.478, allocations: 1.572 MB / 1.247 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4347/3.913, allocations: 200.9 MB / 1.443 GB, free: 108.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01233/3.925, allocations: 1.723 MB / 1.445 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001991/3.927, allocations: 0.535 MB / 1.445 GB, free: 107.2 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.005591/3.933, allocations: 3.095 MB / 1.448 GB, free: 104.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/3.935, allocations: 0.5465 MB / 1.449 GB, free: 104.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.504/4.438, allocations: 136.3 MB / 1.582 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.923e-05/4.439, allocations: 60.28 kB / 1.582 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001064/4.439, allocations: 58.94 kB / 1.582 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/4.439, allocations: 27.14 kB / 1.582 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5582/4.997, allocations: 201.6 MB / 1.779 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.514e-05/4.997, allocations: 5.344 kB / 1.779 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/4.998, allocations: 335.9 kB / 1.779 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07073/5.069, allocations: 33.42 MB / 1.812 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001404/5.071, allocations: 107.5 kB / 1.812 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4148/5.485, allocations: 183.6 MB / 1.991 GB, free: 167 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/5.485, allocations: 7.719 kB / 1.991 GB, free: 167 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3345/5.82, allocations: 152.2 MB / 2.14 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/5.821, allocations: 0.5093 MB / 2.14 GB, free: 43.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002293/5.824, allocations: 96 kB / 2.141 GB, free: 43.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008684/5.832, allocations: 1.487 MB / 2.142 GB, free: 42.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00346/5.836, allocations: 0.5216 MB / 2.142 GB, free: 41.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008233/5.837, allocations: 144 kB / 2.143 GB, free: 41.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003443/5.84, allocations: 2.965 MB / 2.146 GB, free: 38.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/5.84, allocations: 2.875 kB / 2.146 GB, free: 38.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01133/5.851, allocations: 3.829 MB / 2.149 GB, free: 34.92 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.001292/5.853, allocations: 247.4 kB / 2.149 GB, free: 34.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2447/6.097, allocations: 32.74 MB / 2.181 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/6.097, allocations: 0 / 2.181 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03576/6.133, allocations: 19.6 MB / 2.201 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005202/6.138, allocations: 0.6957 MB / 2.201 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03174/6.17, allocations: 27.39 MB / 2.228 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004627/6.175, allocations: 4.602 MB / 2.233 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00378/6.178, allocations: 1.991 MB / 2.234 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007017/6.179, allocations: 285.5 kB / 2.235 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/6.179, allocations: 0 / 2.235 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.5213/6.701, allocations: 287.1 MB / 2.515 GB, free: 61.67 MB / 0.5606 GB " [Timeout remaining time 653] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.696773111005314]