Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001402/0.001402, allocations: 84.3 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001129/0.001129, allocations: 167.5 kB / 25.6 MB, free: 8.449 MB / 18.57 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.8869/0.8869, allocations: 158.6 MB / 187.5 MB, free: 2.777 MB / 170.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.654e-06/1.654e-06, allocations: 0 / 251.5 MB, free: 7.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.597e-05/1.762e-05, allocations: 10.25 kB / 251.5 MB, free: 7.328 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01293/0.01294, allocations: 12.76 MB / 264.2 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009265/0.02221, allocations: 4.726 MB / 269 MB, free: 5.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.0243, allocations: 103.5 kB / 269.1 MB, free: 5.672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004495/0.0288, allocations: 4.435 MB / 273.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004682/0.03348, allocations: 2.294 MB / 275.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001907/0.03539, allocations: 1.243 MB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00568/0.04107, allocations: 6.312 MB / 283.3 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003426/0.04449, allocations: 4.745 MB / 288.1 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003459/0.04795, allocations: 3.942 MB / 292 MB, free: 14.59 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002563/0.05052, allocations: 3.192 MB / 295.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005267/0.05104, allocations: 0.5039 MB / 295.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.0528, allocations: 1.584 MB / 297.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.05454, allocations: 2.817 MB / 300.1 MB, free: 6.473 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.05577, allocations: 1.772 MB / 301.9 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004508/0.06027, allocations: 6.144 MB / 308 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.06028, allocations: 0 / 308 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.06028, allocations: 0 / 308 MB, free: 14.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.404e-05/0.06034, allocations: 0 / 308 MB, free: 14.53 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.006512/0.06685, allocations: 6.35 MB / 314.4 MB, free: 8.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.06689, allocations: 15.98 kB / 314.4 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004946/0.07183, allocations: 2.218 MB / 316.6 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.07499, allocations: 2.849 MB / 319.5 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.07515, allocations: 304.3 kB / 319.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004758/0.07562, allocations: 440.6 kB / 320.2 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0071/0.08272, allocations: 6.615 MB / 326.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.311e-05/0.08281, allocations: 51.58 kB / 326.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002944/0.0831, allocations: 183.9 kB / 327 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001451/0.08455, allocations: 1.832 MB / 328.9 MB, free: 8.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005089/0.08964, allocations: 3.096 MB / 332 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1541/0.2437, allocations: 47.11 MB / 379.1 MB, free: 57.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004352/0.248, allocations: 2.206 MB / 381.3 MB, free: 57.24 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/0.2486, allocations: 0.5101 MB / 381.8 MB, free: 57.19 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004696/0.2532, allocations: 4.283 MB / 386.1 MB, free: 56.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2533, allocations: 59.02 kB / 386.1 MB, free: 56.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=165): time 3.557e-06/0.2533, allocations: 0 / 386.1 MB, free: 56.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=207): time 0.0185/0.2718, allocations: 8.01 MB / 394.2 MB, free: 53.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.2718, allocations: 205 kB / 394.4 MB, free: 53.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.2749, allocations: 3.954 MB / 398.3 MB, free: 50.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.275, allocations: 49.7 kB / 398.4 MB, free: 50.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.2763, allocations: 3.911 MB / 402.3 MB, free: 46.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004221/0.2767, allocations: 0.8412 MB / 403.1 MB, free: 45.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009863/0.2777, allocations: 1.459 MB / 404.6 MB, free: 44.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.2778, allocations: 476.8 kB / 405 MB, free: 43.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008366/0.2786, allocations: 0.6102 MB / 405.6 MB, free: 43.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.2809, allocations: 6.467 MB / 412.1 MB, free: 33.97 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/0.285, allocations: 7.693 MB / 419.8 MB, free: 24.1 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-05/0.285, allocations: 40 kB / 419.8 MB, free: 24.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.005293/0.2903, allocations: 5.278 MB / 425.1 MB, free: 18.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.2904, allocations: 68.03 kB / 425.2 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.2905, allocations: 140 kB / 425.3 MB, free: 18.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009129/0.2914, allocations: 448 kB / 425.8 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/0.2936, allocations: 1.466 MB / 427.2 MB, free: 16.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.2959, allocations: 3.082 MB / 430.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/0.2984, allocations: 283.7 kB / 430.6 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/0.2987, allocations: 348 kB / 430.9 MB, free: 12.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (823): * Single equations (assignments): 819 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.3001, allocations: 0.6914 MB / 431.6 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.3005, allocations: 445.4 kB / 432.1 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.302, allocations: 1.259 MB / 433.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.3021, allocations: 31.88 kB / 433.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3021, allocations: 4 kB / 433.3 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3021, allocations: 7.969 kB / 433.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007467/0.3096, allocations: 6.033 MB / 439.4 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.3096, allocations: 12.97 kB / 439.4 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006304/0.3102, allocations: 299 kB / 439.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006514/0.3108, allocations: 247.4 kB / 439.9 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.3109, allocations: 44 kB / 440 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.3124, allocations: 2.326 MB / 442.3 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.3124, allocations: 15.94 kB / 442.3 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.3154, allocations: 2.625 MB / 444.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007556/0.3161, allocations: 0.5206 MB / 445.5 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/0.3164, allocations: 52.02 kB / 445.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006968/0.3171, allocations: 44 kB / 445.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.3172, allocations: 156.5 kB / 445.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.256e-05/0.3173, allocations: 55.98 kB / 445.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001542/0.3189, allocations: 1.626 MB / 447.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3189, allocations: 4 kB / 447.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003787/0.3226, allocations: 1.226 MB / 448.6 MB, free: 10.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * 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 (172): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004493/0.3231, allocations: 270.3 kB / 448.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003349/0.3264, allocations: 2.974 MB / 451.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.3265, allocations: 0 / 451.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007658/0.3272, allocations: 0.7652 MB / 452.6 MB, free: 6.543 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.3291, allocations: 0.5112 MB / 453.1 MB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.3422, allocations: 9.145 MB / 462.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001496/0.3437, allocations: 1.522 MB / 463.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001539/0.3452, allocations: 0.5621 MB / 464.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009799/0.3462, allocations: 0.6738 MB / 465 MB, free: 9.836 MB / 362.7 MB Notification: Performance of SimCode: time 1.543e-06/0.3462, allocations: 0 / 465 MB, free: 9.836 MB / 362.7 MB Notification: Performance of Templates: time 0.05452/0.4007, allocations: 36.18 MB / 0.4895 GB, free: 5.664 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.057043122127652]