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.00177/0.00177, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002186/0.002186, allocations: 165.3 kB / 24.26 MB, free: 148 kB / 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 1.554/1.554, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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.3398/0.3398, allocations: 32.79 MB / 293.9 MB, free: 1.219 MB / 266.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.114e-06/2.114e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.364e-05/3.576e-05, allocations: 9.344 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.007209/0.007244, allocations: 2.483 MB / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.009838, allocations: 0.6894 MB / 378.4 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003756/0.01021, allocations: 11.94 kB / 378.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000364/0.01058, allocations: 43.52 kB / 378.5 MB, free: 1.762 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005426/0.01112, allocations: 91.14 kB / 378.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006215/0.01174, allocations: 111.7 kB / 378.7 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008526/0.01259, allocations: 350.4 kB / 379 MB, free: 1.219 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.01287, allocations: 54.06 kB / 379 MB, free: 1.16 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006151/0.01348, allocations: 195.6 kB / 379.2 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003173/0.0138, allocations: 95.69 kB / 379.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.672e-05/0.0139, allocations: 24 kB / 379.4 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.01402, allocations: 28 kB / 379.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.514e-05/0.01411, allocations: 55.75 kB / 379.4 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.01434, allocations: 99.75 kB / 379.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007195/0.01506, allocations: 310.9 kB / 379.8 MB, free: 376 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.01506, allocations: 0 / 379.8 MB, free: 376 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01506, allocations: 4 kB / 379.8 MB, free: 372 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.01508, allocations: 0 / 379.8 MB, free: 372 kB / 346.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.001656/0.01673, allocations: 0.5168 MB / 380.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.01678, allocations: 8.031 kB / 380.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004976/0.01727, allocations: 80.67 kB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.0179, allocations: 217.2 kB / 380.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/0.01794, allocations: 20.88 kB / 380.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.01805, allocations: 36.31 kB / 380.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009511/0.019, allocations: 281.6 kB / 381 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.01903, allocations: 8.125 kB / 381 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.078e-05/0.01907, allocations: 12.38 kB / 381 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.0191, allocations: 11.94 kB / 381 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009035/0.02, allocations: 187.5 kB / 381.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003185/0.02318, allocations: 1.174 MB / 382.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00088/0.02406, allocations: 234.5 kB / 382.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/0.02451, allocations: 95.39 kB / 382.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.02455, allocations: 4 kB / 382.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/0.02462, allocations: 42.5 kB / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 3.186e-06/0.02462, allocations: 0 / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.004778/0.0294, allocations: 1.213 MB / 384 MB, free: 11.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.02955, allocations: 136.5 kB / 384.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004213/0.02997, allocations: 229.8 kB / 384.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.03003, allocations: 33.7 kB / 384.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.03026, allocations: 180.5 kB / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.03046, allocations: 115 kB / 384.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.03067, allocations: 66.19 kB / 384.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003065/0.03097, allocations: 338.8 kB / 385 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005655/0.03154, allocations: 104.9 kB / 385.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008008/0.03234, allocations: 250 kB / 385.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.03379, allocations: 362.4 kB / 385.7 MB, free: 9.957 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.0338, allocations: 8 kB / 385.7 MB, free: 9.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001802/0.0356, allocations: 413.2 kB / 386.1 MB, free: 9.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.03563, allocations: 8 kB / 386.2 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.03565, allocations: 4 kB / 386.2 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.537e-05/0.03569, allocations: 11.94 kB / 386.2 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000848/0.03654, allocations: 95.81 kB / 386.3 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/0.03657, allocations: 8 kB / 386.3 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.03702, allocations: 27.92 kB / 386.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.03709, allocations: 20 kB / 386.3 MB, free: 9.367 MB / 362.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 0.0003342/0.03742, allocations: 157.7 kB / 386.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/0.03765, allocations: 39.81 kB / 386.5 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.03779, allocations: 33.77 kB / 386.5 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.03781, allocations: 7.938 kB / 386.5 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.03782, allocations: 4 kB / 386.6 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.03783, allocations: 0 / 386.6 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.04098, allocations: 0.888 MB / 387.4 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.04099, allocations: 240 / 387.4 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.04177, allocations: 83.88 kB / 387.5 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.575e-05/0.04179, allocations: 4 kB / 387.5 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.04183, allocations: 8 kB / 387.5 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.04183, allocations: 0 / 387.5 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/0.04184, allocations: 7.984 kB / 387.5 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.04396, allocations: 0.745 MB / 388.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.04407, allocations: 23.81 kB / 388.3 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.04416, allocations: 12.05 kB / 388.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005848/0.04474, allocations: 19.98 kB / 388.3 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.04489, allocations: 31.89 kB / 388.4 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.04492, allocations: 12 kB / 388.4 MB, free: 7.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000312/0.04523, allocations: 161.2 kB / 388.5 MB, free: 7.066 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.04523, allocations: 0 / 388.5 MB, free: 7.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001007/0.04624, allocations: 68 kB / 388.6 MB, free: 7 MB / 362.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.0002408/0.04648, allocations: 103.1 kB / 388.7 MB, free: 6.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.0479, allocations: 267.8 kB / 389 MB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.04791, allocations: 0 / 389 MB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000642/0.04855, allocations: 120.8 kB / 389.1 MB, free: 6.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.04983, allocations: 52.33 kB / 389.1 MB, free: 6.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.05239, allocations: 0.7441 MB / 389.9 MB, free: 5.664 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.05272, allocations: 164.1 kB / 390 MB, free: 5.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000265/0.05298, allocations: 34.95 kB / 390.1 MB, free: 5.449 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.05312, allocations: 32.5 kB / 390.1 MB, free: 5.418 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.05312, allocations: 0 / 390.1 MB, free: 5.418 MB / 362.7 MB Notification: Performance of Templates: time 0.01192/0.06504, allocations: 2.401 MB / 392.5 MB, free: 3.051 MB / 362.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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/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: 4.9392665879568085]