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.0009018/0.0009018, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001267/0.002169, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007804/0.0007804, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009974/0.001778, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 1.069/1.069, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.129/1.198, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.3369/0.3369, allocations: 32.8 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02882/0.3658, allocations: 12.53 MB / 289.3 MB, free: 8.684 MB / 282.7 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: Performance of FrontEnd - loaded program: time 2.875e-06/2.875e-06, allocations: 1.25 kB / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.265e-05/1.553e-05, allocations: 4.203 kB / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003073/0.003089, allocations: 2.674 MB / 293.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.004304, allocations: 0.7404 MB / 294 MB, free: 4.914 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.004466, allocations: 7.938 kB / 294 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.004575, allocations: 43.47 kB / 294 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.004729, allocations: 99.12 kB / 294.1 MB, free: 4.766 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.004925, allocations: 103.8 kB / 294.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.005245, allocations: 358.2 kB / 294.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.005396, allocations: 60.09 kB / 294.6 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.005755, allocations: 217 kB / 294.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.005899, allocations: 99.69 kB / 295 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.005931, allocations: 28 kB / 295 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.727e-05/0.006018, allocations: 28 kB / 295 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.642e-05/0.006055, allocations: 39.81 kB / 295.1 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.558e-05/0.00613, allocations: 83.81 kB / 295.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.006402, allocations: 195.2 kB / 295.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-05/0.00642, allocations: 0 / 295.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006421, allocations: 0 / 295.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.123e-05/0.006442, allocations: 0 / 295.3 MB, free: 3.578 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007515/0.007194, allocations: 0.5548 MB / 295.9 MB, free: 3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.007237, allocations: 12.03 kB / 295.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.00747, allocations: 137.9 kB / 296 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.007722, allocations: 193.3 kB / 296.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.007742, allocations: 24.86 kB / 296.2 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.007786, allocations: 32.33 kB / 296.3 MB, free: 2.562 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.008057, allocations: 234.3 kB / 296.5 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.008079, allocations: 8.141 kB / 296.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.008096, allocations: 16.31 kB / 296.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.008107, allocations: 7.938 kB / 296.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.008217, allocations: 74.14 kB / 296.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009126/0.00913, allocations: 1.014 MB / 297.6 MB, free: 1.125 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.009319, allocations: 162.4 kB / 297.8 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.957e-05/0.009379, allocations: 51.42 kB / 297.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.009402, allocations: 8.125 kB / 297.8 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.009434, allocations: 38.56 kB / 297.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.009436, allocations: 0 / 297.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001094/0.01053, allocations: 0.8126 MB / 298.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.01059, allocations: 140.4 kB / 298.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.01074, allocations: 236.8 kB / 299.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.01076, allocations: 29.7 kB / 299.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.01084, allocations: 169 kB / 299.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.721e-05/0.0109, allocations: 119 kB / 299.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.01097, allocations: 70.17 kB / 299.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.01108, allocations: 342.7 kB / 299.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.223e-05/0.01112, allocations: 28.98 kB / 299.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.01123, allocations: 170.1 kB / 300 MB, free: 14.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.01144, allocations: 254.7 kB / 300.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.01144, allocations: 0 / 300.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000236/0.01168, allocations: 233.1 kB / 300.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.01169, allocations: 8 kB / 300.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.0117, allocations: 4 kB / 300.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.01171, allocations: 4 kB / 300.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.01193, allocations: 112.1 kB / 300.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.01195, allocations: 15.88 kB / 300.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.83e-05/0.01204, allocations: 24.3 kB / 300.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.01205, allocations: 20 kB / 300.6 MB, free: 13.75 MB / 298.7 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 9.529e-05/0.01215, allocations: 129.8 kB / 300.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.01221, allocations: 28.2 kB / 300.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.454e-05/0.01226, allocations: 37.77 kB / 300.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.01227, allocations: 7.984 kB / 300.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.01228, allocations: 3.938 kB / 300.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.01228, allocations: 4 kB / 300.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006305/0.01291, allocations: 0.6656 MB / 301.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01291, allocations: 0 / 301.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.0131, allocations: 79.89 kB / 301.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.684e-05/0.01313, allocations: 27.78 kB / 301.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.01314, allocations: 4 kB / 301.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.01315, allocations: 8 kB / 301.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01315, allocations: 0 / 301.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.01315, allocations: 4 kB / 301.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000362/0.01352, allocations: 0.5344 MB / 302.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.01354, allocations: 12.06 kB / 302.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.01366, allocations: 15.98 kB / 302.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.01372, allocations: 23.95 kB / 302.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.01373, allocations: 12 kB / 302.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.012e-05/0.01379, allocations: 70.77 kB / 302.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01379, allocations: 0 / 302.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002712/0.01406, allocations: 68 kB / 302.3 MB, free: 11.96 MB / 298.7 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.0001143/0.01417, allocations: 88.3 kB / 302.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.01437, allocations: 153.5 kB / 302.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/0.01439, allocations: 7.984 kB / 302.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.218e-05/0.01446, allocations: 76.69 kB / 302.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.01485, allocations: 72.25 kB / 302.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.0174, allocations: 0.6156 MB / 303.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.764e-05/0.01748, allocations: 96.91 kB / 303.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.01757, allocations: 39.42 kB / 303.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.01768, allocations: 91.36 kB / 303.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01768, allocations: 0 / 303.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of Templates: time 0.005057/0.02274, allocations: 2.544 MB / 306.1 MB, free: 8.164 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.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: 3.3493957333266735]