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.0009981/0.0009981, allocations: 85.97 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.001003/0.001003, allocations: 169.9 kB / 25.61 MB, free: 8.914 MB / 18.57 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.9044/0.9044, allocations: 177.2 MB / 206.1 MB, free: 4.516 MB / 186.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.1461/0.1461, allocations: 32.8 MB / 295.4 MB, free: 15.39 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 1.784e-06/1.784e-06, allocations: 0 / 377.2 MB, free: 25.65 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.812e-05, allocations: 10.14 kB / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003077/0.003106, allocations: 2.603 MB / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009897/0.004095, allocations: 0.705 MB / 380.6 MB, free: 22.31 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.004245, allocations: 7.938 kB / 380.6 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.004394, allocations: 47.47 kB / 380.6 MB, free: 22.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.004553, allocations: 95.12 kB / 380.7 MB, free: 22.16 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.004823, allocations: 107.8 kB / 380.8 MB, free: 22.05 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002784/0.005102, allocations: 358.3 kB / 381.2 MB, free: 21.7 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.005233, allocations: 50.12 kB / 381.2 MB, free: 21.65 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.005491, allocations: 199.5 kB / 381.4 MB, free: 21.46 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.005623, allocations: 99.69 kB / 381.5 MB, free: 21.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.005654, allocations: 20 kB / 381.5 MB, free: 21.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.005714, allocations: 28 kB / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.00575, allocations: 51.77 kB / 381.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.145e-05/0.005832, allocations: 107.7 kB / 381.7 MB, free: 21.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.006082, allocations: 215.1 kB / 381.9 MB, free: 20.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.006084, allocations: 0 / 381.9 MB, free: 20.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006085, allocations: 0 / 381.9 MB, free: 20.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.006089, allocations: 0 / 381.9 MB, free: 20.95 MB / 314.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.000578/0.006667, allocations: 0.6205 MB / 382.5 MB, free: 20.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.0067, allocations: 11.98 kB / 382.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.006973, allocations: 76.69 kB / 382.6 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.007207, allocations: 220.1 kB / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.007227, allocations: 16.88 kB / 382.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.007267, allocations: 28.36 kB / 382.9 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.007535, allocations: 243.3 kB / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.007555, allocations: 8.125 kB / 383.1 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.007574, allocations: 16.38 kB / 383.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.007583, allocations: 11.94 kB / 383.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.007713, allocations: 87.72 kB / 383.2 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009593/0.008672, allocations: 1.374 MB / 384.6 MB, free: 18.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.008882, allocations: 208.4 kB / 384.8 MB, free: 17.81 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.145e-05/0.008944, allocations: 62.72 kB / 384.9 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.008963, allocations: 4 kB / 384.9 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.008982, allocations: 41.39 kB / 384.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.008984, allocations: 0 / 384.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001055/0.01004, allocations: 0.861 MB / 385.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.01007, allocations: 136.5 kB / 385.9 MB, free: 16.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.0102, allocations: 284.1 kB / 386.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.01022, allocations: 29.7 kB / 386.2 MB, free: 16.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.01029, allocations: 227.2 kB / 386.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.762e-05/0.01034, allocations: 123 kB / 386.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/0.01042, allocations: 71.83 kB / 386.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.01049, allocations: 0.5156 MB / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.01054, allocations: 28.97 kB / 387.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.01067, allocations: 230.6 kB / 387.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.0109, allocations: 305.8 kB / 387.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.0109, allocations: 0 / 387.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003309/0.01123, allocations: 280.9 kB / 388 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.01125, allocations: 7.984 kB / 388 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.01125, allocations: 8.25 kB / 388 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.01127, allocations: 8 kB / 388 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.01153, allocations: 104.2 kB / 388.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.01154, allocations: 12 kB / 388.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.01169, allocations: 19.92 kB / 388.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.01171, allocations: 16 kB / 388.1 MB, free: 14.07 MB / 314.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 8.123e-05/0.01179, allocations: 180.5 kB / 388.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.959e-05/0.01189, allocations: 43.8 kB / 388.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.01194, allocations: 29.78 kB / 388.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01194, allocations: 4.234 kB / 388.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.01195, allocations: 3.938 kB / 388.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01195, allocations: 3.984 kB / 388.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008076/0.01276, allocations: 0.9279 MB / 389.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.01276, allocations: 4 kB / 389.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.013, allocations: 71.89 kB / 389.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.01301, allocations: 4 kB / 389.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.01303, allocations: 8 kB / 389.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.01303, allocations: 7.984 kB / 389.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.01304, allocations: 0 / 389.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.01346, allocations: 0.7387 MB / 390.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.01349, allocations: 27.84 kB / 390.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.01352, allocations: 8 kB / 390.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.01376, allocations: 11.98 kB / 390.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.01383, allocations: 31.95 kB / 390.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.01384, allocations: 4 kB / 390.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.735e-05/0.01391, allocations: 185.1 kB / 390.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01391, allocations: 4 kB / 390.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000499/0.01441, allocations: 71.94 kB / 390.5 MB, free: 11.62 MB / 314.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 9.178e-05/0.0145, allocations: 103.2 kB / 390.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.01474, allocations: 164.2 kB / 390.8 MB, free: 11.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01475, allocations: 0 / 390.8 MB, free: 11.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.322e-05/0.01484, allocations: 84.34 kB / 390.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/0.01541, allocations: 53.42 kB / 390.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.01653, allocations: 0.7458 MB / 391.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.915e-05/0.01661, allocations: 92.92 kB / 391.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.01673, allocations: 34.95 kB / 391.8 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.01686, allocations: 118.2 kB / 391.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.353e-06/0.01686, allocations: 0 / 391.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of Templates: time 0.00541/0.02227, allocations: 2.681 MB / 394.6 MB, free: 7.523 MB / 314.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 -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.14711334137246]