Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001083/0.001083, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001477/0.00256, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001025/0.001025, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00136/0.002385, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9906/0.9906, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09091/1.081, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.2e-05, allocations: 5.828 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01039/0.01041, allocations: 14.22 MB / 258.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008459/0.01887, allocations: 4.942 MB / 263.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0015/0.02037, allocations: 107.5 kB / 264 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003244/0.02361, allocations: 3.239 MB / 267.2 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.02795, allocations: 2.679 MB / 269.9 MB, free: 4.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.02935, allocations: 1.018 MB / 270.9 MB, free: 3.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1301/0.1595, allocations: 7.26 MB / 278.2 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004723/0.1642, allocations: 3.771 MB / 281.9 MB, free: 1.945 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005937/0.1701, allocations: 4.225 MB / 286.2 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004004/0.1741, allocations: 3.39 MB / 289.6 MB, free: 1.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009341/0.1751, allocations: 489.1 kB / 290 MB, free: 1.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.1771, allocations: 1.491 MB / 291.5 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.1786, allocations: 2.721 MB / 294.2 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.18, allocations: 1.486 MB / 295.7 MB, free: 300 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005298/0.1853, allocations: 6.341 MB / 302.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.1853, allocations: 8.938 kB / 302.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1853, allocations: 0 / 302.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.943e-05/0.1854, allocations: 0 / 302.1 MB, free: 12.48 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.008913/0.1943, allocations: 7.833 MB / 309.9 MB, free: 5.152 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.1943, allocations: 12.03 kB / 309.9 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004213/0.1985, allocations: 1.813 MB / 311.7 MB, free: 3.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.2014, allocations: 2.813 MB / 314.6 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.2016, allocations: 317.8 kB / 314.9 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004967/0.2021, allocations: 434.5 kB / 315.3 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006944/0.209, allocations: 7.328 MB / 322.6 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.721e-05/0.2091, allocations: 61.73 kB / 322.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003618/0.2095, allocations: 202.6 kB / 322.9 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002311/0.2118, allocations: 2.692 MB / 325.6 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006246/0.218, allocations: 3.933 MB / 329.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03171/0.2498, allocations: 43.37 MB / 372.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004732/0.2545, allocations: 2.54 MB / 375.4 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009409/0.2554, allocations: 0.7009 MB / 376.1 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007734/0.2632, allocations: 6.558 MB / 382.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.2632, allocations: 59.84 kB / 382.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 3.767e-06/0.2632, allocations: 0 / 382.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02039/0.2836, allocations: 9.476 MB / 392.2 MB, free: 3.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.2837, allocations: 158.5 kB / 392.4 MB, free: 3.688 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00353/0.2872, allocations: 4.333 MB / 396.7 MB, free: 140 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.2873, allocations: 68.2 kB / 396.8 MB, free: 68 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.2892, allocations: 4.344 MB / 401.1 MB, free: 11.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006452/0.2899, allocations: 1.166 MB / 402.3 MB, free: 10.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001383/0.2912, allocations: 1.663 MB / 403.9 MB, free: 9.191 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.2913, allocations: 309.1 kB / 404.2 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/0.2931, allocations: 1.252 MB / 405.5 MB, free: 7.629 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.2971, allocations: 6.268 MB / 411.8 MB, free: 14.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006171/0.3033, allocations: 8.827 MB / 420.6 MB, free: 3.547 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.307e-05/0.3033, allocations: 52 kB / 420.6 MB, free: 3.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.1317/0.435, allocations: 6.432 MB / 427.1 MB, free: 116.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.008e-05/0.4351, allocations: 82.56 kB / 427.1 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001939/0.4352, allocations: 186.8 kB / 427.3 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002075/0.4373, allocations: 0.8414 MB / 428.2 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004607/0.4419, allocations: 2.213 MB / 430.4 MB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.4459, allocations: 4.351 MB / 434.7 MB, free: 114.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003822/0.4497, allocations: 367.9 kB / 435.1 MB, free: 114.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004337/0.4502, allocations: 447 kB / 435.5 MB, free: 114.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1107): * Single equations (assignments): 1099 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001922/0.4521, allocations: 0.8276 MB / 436.4 MB, free: 114 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005902/0.4527, allocations: 328.1 kB / 436.7 MB, free: 114 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002982/0.4557, allocations: 2.104 MB / 438.8 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.412e-05/0.4557, allocations: 52.08 kB / 438.8 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.4557, allocations: 7.844 kB / 438.8 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4557, allocations: 13.12 kB / 438.9 MB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008221/0.4639, allocations: 6.324 MB / 445.2 MB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/0.464, allocations: 13 kB / 445.2 MB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.4654, allocations: 0.6902 MB / 445.9 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.4658, allocations: 434.1 kB / 446.3 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.4672, allocations: 0.5776 MB / 446.9 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.4673, allocations: 54.11 kB / 446.9 MB, free: 113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002384/0.4697, allocations: 3.432 MB / 450.4 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4697, allocations: 11.25 kB / 450.4 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.4728, allocations: 3.094 MB / 453.5 MB, free: 109.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003257/0.4731, allocations: 48.2 kB / 453.5 MB, free: 109.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008487/0.474, allocations: 59.05 kB / 453.6 MB, free: 109 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/0.4742, allocations: 175 kB / 453.7 MB, free: 109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.4744, allocations: 55.12 kB / 453.8 MB, free: 109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.4754, allocations: 1.587 MB / 455.4 MB, free: 108.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4754, allocations: 2.078 kB / 455.4 MB, free: 108.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003802/0.4792, allocations: 1.559 MB / 457 MB, free: 108.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000365/0.4796, allocations: 210.8 kB / 457.2 MB, free: 108.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.4831, allocations: 4.048 MB / 461.2 MB, free: 105.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001831/0.4833, allocations: 154.1 kB / 461.4 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.485, allocations: 1.791 MB / 463.1 MB, free: 103.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.4871, allocations: 3.45 MB / 466.6 MB, free: 99.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.4991, allocations: 11.57 MB / 478.2 MB, free: 89.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.5003, allocations: 1.813 MB / 480 MB, free: 87.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00157/0.5018, allocations: 0.7081 MB / 480.7 MB, free: 86.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/0.5029, allocations: 0.7218 MB / 481.4 MB, free: 86.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.001e-06/0.5029, allocations: 0 / 481.4 MB, free: 86.1 MB / 394.7 MB Notification: Performance of Templates: time 0.05874/0.5617, allocations: 49.72 MB / 0.5187 GB, free: 36.59 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.621990567073226]