Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001284/0.001284, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002161/0.003445, allocations: 453.8 kB / 10.46 MB, free: 236 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.001174/0.001174, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001567/0.002742, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9515/0.9515, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1642/1.116, allocations: 49.5 MB / 220.7 MB, free: 1.348 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.082e-05/2.216e-05, allocations: 6.25 kB / 222 MB, free: 44 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01518/0.0152, allocations: 14.29 MB / 236.3 MB, free: 1.68 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.02898, allocations: 4.946 MB / 241.2 MB, free: 12.71 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00407/0.03305, allocations: 115.4 kB / 241.3 MB, free: 12.6 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004654/0.03771, allocations: 3.239 MB / 244.6 MB, free: 9.352 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006859/0.04457, allocations: 2.718 MB / 247.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002167/0.04673, allocations: 1.025 MB / 248.3 MB, free: 5.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.008976/0.05571, allocations: 6.915 MB / 255.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005368/0.06108, allocations: 3.783 MB / 259 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006426/0.0675, allocations: 4.051 MB / 263.1 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004859/0.07236, allocations: 3.394 MB / 266.5 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001719/0.07408, allocations: 488 kB / 266.9 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0036/0.07768, allocations: 1.51 MB / 268.5 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0035/0.08118, allocations: 2.763 MB / 271.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003685/0.08487, allocations: 1.519 MB / 272.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008923/0.09379, allocations: 6.413 MB / 279.2 MB, free: 6.605 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.38e-05/0.0938, allocations: 4 kB / 279.2 MB, free: 6.602 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.0938, allocations: 3.938 kB / 279.2 MB, free: 6.598 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003461/0.09415, allocations: 0 / 279.2 MB, free: 6.598 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.1522/0.2464, allocations: 7.893 MB / 287.1 MB, free: 47.01 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2464, allocations: 9.188 kB / 287.1 MB, free: 47.01 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006468/0.2529, allocations: 1.816 MB / 288.9 MB, free: 47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006576/0.2595, allocations: 2.854 MB / 291.7 MB, free: 46.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.2598, allocations: 321.9 kB / 292 MB, free: 46.33 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001507/0.2614, allocations: 430.5 kB / 292.5 MB, free: 46.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.2741, allocations: 7.319 MB / 299.8 MB, free: 43.15 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002164/0.2744, allocations: 58.08 kB / 299.8 MB, free: 43.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.2749, allocations: 203.7 kB / 300 MB, free: 43.06 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/0.2773, allocations: 2.701 MB / 302.7 MB, free: 42.53 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009058/0.2864, allocations: 3.925 MB / 306.7 MB, free: 39.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04245/0.3288, allocations: 43.39 MB / 350.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005762/0.3346, allocations: 2.539 MB / 352.6 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009812/0.3356, allocations: 0.7042 MB / 353.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.347, allocations: 6.571 MB / 359.9 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.568e-05/0.3471, allocations: 68.55 kB / 359.9 MB, free: 1.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=269): time 6.382e-06/0.3471, allocations: 3.938 kB / 359.9 MB, free: 1.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=300): time 0.02328/0.3704, allocations: 9.464 MB / 369.4 MB, free: 7.906 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.696e-05/0.3705, allocations: 162.4 kB / 369.6 MB, free: 7.719 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/0.3755, allocations: 4.373 MB / 373.9 MB, free: 3.344 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004045/0.3759, allocations: 65.7 kB / 374 MB, free: 3.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00253/0.3784, allocations: 4.345 MB / 378.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.3797, allocations: 1.166 MB / 379.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001563/0.3812, allocations: 1.665 MB / 381.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.3813, allocations: 304.9 kB / 381.5 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/0.3838, allocations: 1.26 MB / 382.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005236/0.389, allocations: 6.263 MB / 389 MB, free: 1.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008735/0.3978, allocations: 8.831 MB / 397.8 MB, free: 6.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/0.3979, allocations: 52 kB / 397.9 MB, free: 6.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01328/0.4112, allocations: 6.441 MB / 404.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4113, allocations: 83.94 kB / 404.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000272/0.4116, allocations: 188 kB / 404.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002175/0.4137, allocations: 0.8392 MB / 405.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005714/0.4195, allocations: 2.215 MB / 407.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004996/0.4245, allocations: 4.355 MB / 412 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005721/0.4302, allocations: 367.7 kB / 412.4 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/0.4313, allocations: 448 kB / 412.8 MB, free: 7.016 MB / 362.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.002552/0.4338, allocations: 0.8215 MB / 413.6 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000899/0.4347, allocations: 331.6 kB / 413.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.4382, allocations: 2.105 MB / 416 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/0.4383, allocations: 47.98 kB / 416.1 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.4383, allocations: 4 kB / 416.1 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.4383, allocations: 15.89 kB / 416.1 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1537/0.592, allocations: 6.343 MB / 422.5 MB, free: 104.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.554e-05/0.5921, allocations: 12.83 kB / 422.5 MB, free: 104.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/0.5942, allocations: 0.6911 MB / 423.2 MB, free: 104 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/0.5962, allocations: 0.7137 MB / 423.9 MB, free: 104 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.598, allocations: 0.5727 MB / 424.4 MB, free: 104 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/0.5982, allocations: 52.36 kB / 424.5 MB, free: 104 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.6017, allocations: 3.43 MB / 427.9 MB, free: 101.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.544e-05/0.6017, allocations: 11.66 kB / 427.9 MB, free: 101.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.6075, allocations: 3.097 MB / 431 MB, free: 100.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/0.6086, allocations: 54.86 kB / 431.1 MB, free: 100.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.6098, allocations: 55.67 kB / 431.1 MB, free: 100.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/0.6101, allocations: 175.2 kB / 431.3 MB, free: 100.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.6102, allocations: 56.62 kB / 431.4 MB, free: 100.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001799/0.612, allocations: 1.611 MB / 433 MB, free: 100.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.612, allocations: 1.641 kB / 433 MB, free: 100.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005072/0.617, allocations: 1.592 MB / 434.6 MB, free: 100.6 MB / 362.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.0005854/0.6176, allocations: 209.1 kB / 434.8 MB, free: 100.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006018/0.6237, allocations: 4.058 MB / 438.8 MB, free: 100.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000315/0.624, allocations: 158.2 kB / 439 MB, free: 100 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00312/0.6271, allocations: 1.791 MB / 440.8 MB, free: 99.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004245/0.6313, allocations: 3.467 MB / 444.2 MB, free: 97.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01817/0.6495, allocations: 11.6 MB / 455.9 MB, free: 90.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.6515, allocations: 1.818 MB / 457.7 MB, free: 89.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002285/0.6538, allocations: 0.7082 MB / 458.4 MB, free: 89.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.655, allocations: 0.721 MB / 459.1 MB, free: 88.38 MB / 362.7 MB Notification: Performance of SimCode: time 2.354e-06/0.655, allocations: 0 / 459.1 MB, free: 88.38 MB / 362.7 MB Notification: Performance of Templates: time 0.06872/0.7237, allocations: 50.33 MB / 0.4975 GB, free: 38.85 MB / 362.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8162474371492863]