Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.001458/0.001458, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.00163/0.00163, allocations: 214.2 kB / 24.48 MB, free: 3.84 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.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2311/0.2311, allocations: 44.93 MB / 359.6 MB, free: 6.094 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002331/0.002331, allocations: 63.89 kB / 0.4942 GB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3141, allocations: 65.48 MB / 0.5582 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004217/0.3183, allocations: 2.479 MB / 0.5606 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3198, allocations: 0.6933 MB / 0.5613 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.3199, allocations: 15.94 kB / 0.5613 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.3201, allocations: 39.53 kB / 0.5613 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.3203, allocations: 87.2 kB / 0.5614 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.3206, allocations: 103.8 kB / 0.5615 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.321, allocations: 338.5 kB / 0.5618 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.3212, allocations: 54.08 kB / 0.5619 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002605/0.3214, allocations: 143.5 kB / 0.562 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.3216, allocations: 123.3 kB / 0.5621 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.921e-05/0.3217, allocations: 20 kB / 0.5622 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.447e-05/0.3218, allocations: 32 kB / 0.5622 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.365e-05/0.3218, allocations: 55.83 kB / 0.5622 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3219, allocations: 115.4 kB / 0.5623 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004035/0.3223, allocations: 309 kB / 0.5626 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3224, allocations: 0 / 0.5626 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3224, allocations: 0 / 0.5626 GB, free: 2.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.3224, allocations: 4 kB / 0.5626 GB, free: 2.906 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009696/0.3233, allocations: 0.5323 MB / 0.5632 GB, free: 2.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.3234, allocations: 12.03 kB / 0.5632 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002417/0.3236, allocations: 48.73 kB / 0.5632 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.324, allocations: 217.9 kB / 0.5634 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.3241, allocations: 20.88 kB / 0.5634 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.006e-05/0.3241, allocations: 32.33 kB / 0.5635 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.3246, allocations: 281.4 kB / 0.5637 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.3247, allocations: 7.953 kB / 0.5638 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.3247, allocations: 8 kB / 0.5638 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.3247, allocations: 8 kB / 0.5638 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004256/0.3251, allocations: 187.7 kB / 0.564 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.3268, allocations: 1.153 MB / 0.5651 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.3273, allocations: 242.6 kB / 0.5653 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.3275, allocations: 99.39 kB / 0.5654 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3276, allocations: 0 / 0.5654 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.3276, allocations: 42.5 kB / 0.5654 GB, free: 15.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.393e-06/0.3276, allocations: 0 / 0.5654 GB, free: 15.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002696/0.3303, allocations: 1.204 MB / 0.5666 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.3304, allocations: 140.4 kB / 0.5668 GB, free: 14.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.3306, allocations: 238.2 kB / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.3307, allocations: 29.7 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.3308, allocations: 180.5 kB / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.694e-05/0.3309, allocations: 115 kB / 0.5673 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.983e-05/0.331, allocations: 70.08 kB / 0.5674 GB, free: 13.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3312, allocations: 342.8 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.3314, allocations: 104.8 kB / 0.5678 GB, free: 13.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.3318, allocations: 233.4 kB / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006966/0.3325, allocations: 368.8 kB / 0.5684 GB, free: 12.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3325, allocations: 0 / 0.5684 GB, free: 12.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008125/0.3333, allocations: 401.1 kB / 0.5687 GB, free: 12.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.3333, allocations: 8.406 kB / 0.5687 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3334, allocations: 12.06 kB / 0.5688 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3334, allocations: 4 kB / 0.5688 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.3338, allocations: 103.8 kB / 0.5689 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.3338, allocations: 11.94 kB / 0.5689 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.334, allocations: 27.92 kB / 0.5689 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.334, allocations: 16 kB / 0.5689 GB, free: 11.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.3342, allocations: 149.8 kB / 0.5691 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.3343, allocations: 35.75 kB / 0.5691 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.423e-05/0.3344, allocations: 37.7 kB / 0.5691 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3344, allocations: 4 kB / 0.5691 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3344, allocations: 0 / 0.5691 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3344, allocations: 0 / 0.5691 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.3359, allocations: 0.884 MB / 0.57 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3359, allocations: 448 / 0.57 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.3363, allocations: 83.88 kB / 0.5701 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3363, allocations: 288 / 0.5701 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.3363, allocations: 12 kB / 0.5701 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.3363, allocations: 7.938 kB / 0.5701 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.3363, allocations: 7.875 kB / 0.5701 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3374, allocations: 0.7345 MB / 0.5708 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.3374, allocations: 27.88 kB / 0.5708 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.3375, allocations: 15.98 kB / 0.5709 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.3377, allocations: 15.98 kB / 0.5709 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.076e-05/0.3378, allocations: 31.83 kB / 0.5709 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3378, allocations: 12 kB / 0.5709 GB, free: 9.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.338, allocations: 164.5 kB / 0.5711 GB, free: 9.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.338, allocations: 0 / 0.5711 GB, free: 9.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004745/0.3385, allocations: 64 kB / 0.5711 GB, free: 9.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001234/0.3386, allocations: 107.4 kB / 0.5712 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006526/0.3393, allocations: 276.1 kB / 0.5715 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3393, allocations: 0 / 0.5715 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.3396, allocations: 127.8 kB / 0.5716 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006409/0.3402, allocations: 46.86 kB / 0.5717 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.3418, allocations: 0.8981 MB / 0.5725 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.342, allocations: 168.1 kB / 0.5727 GB, free: 7.918 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.61e-05/0.3421, allocations: 27.44 kB / 0.5727 GB, free: 7.891 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3421, allocations: 0 / 0.5727 GB, free: 7.891 MB / 414.1 MB Notification: Performance of Templates: time 0.006832/0.3489, allocations: 3.526 MB / 0.5762 GB, free: 4.367 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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: 7.824773478787392]