Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001603/0.001603, allocations: 78.66 kB / 21.42 MB, free: 3.07 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.00124/0.00124, allocations: 173.6 kB / 24.82 MB, free: 9.27 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 1.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.372/0.372, allocations: 34.27 MB / 296.1 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 0 / 378.5 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.985e-05/2.237e-05, allocations: 6.312 kB / 378.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003643/0.003666, allocations: 2.614 MB / 381.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.004844, allocations: 0.7126 MB / 381.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.004996, allocations: 15.88 kB / 381.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.005162, allocations: 43.58 kB / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.005312, allocations: 91.14 kB / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.005609, allocations: 103.8 kB / 382 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.005902, allocations: 350.3 kB / 382.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.006058, allocations: 58.06 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.006331, allocations: 195.5 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.006456, allocations: 99.69 kB / 382.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.006488, allocations: 28 kB / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.877e-05/0.006547, allocations: 28 kB / 382.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.028e-05/0.006587, allocations: 59.73 kB / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.761e-05/0.006655, allocations: 95.77 kB / 382.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.006893, allocations: 211.1 kB / 383.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.006895, allocations: 0 / 383.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006896, allocations: 3.938 kB / 383.1 MB, free: 13.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.006901, allocations: 0 / 383.1 MB, free: 13.71 MB / 362.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.0006171/0.007518, allocations: 0.6167 MB / 383.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.00756, allocations: 12.03 kB / 383.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.007714, allocations: 68.69 kB / 383.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.007924, allocations: 224 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.007941, allocations: 16.88 kB / 384.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.007978, allocations: 36.33 kB / 384.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.008237, allocations: 251.4 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.008254, allocations: 8.125 kB / 384.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.008272, allocations: 8.375 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.008282, allocations: 11.94 kB / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.008386, allocations: 83.83 kB / 384.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009504/0.009336, allocations: 1.382 MB / 385.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.009528, allocations: 212.2 kB / 386.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.009589, allocations: 62.73 kB / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.009613, allocations: 8 kB / 386.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.009639, allocations: 49.5 kB / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.864e-06/0.009641, allocations: 0 / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009534/0.01059, allocations: 0.8364 MB / 387 MB, free: 9.469 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.01065, allocations: 136.5 kB / 387.1 MB, free: 9.305 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.01081, allocations: 284.1 kB / 387.4 MB, free: 9.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.01082, allocations: 29.7 kB / 387.4 MB, free: 8.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.01093, allocations: 235.2 kB / 387.7 MB, free: 8.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.913e-05/0.01099, allocations: 118.9 kB / 387.8 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-05/0.01106, allocations: 79.77 kB / 387.9 MB, free: 8.539 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.0112, allocations: 0.5117 MB / 388.4 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.01125, allocations: 32.97 kB / 388.4 MB, free: 7.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.01139, allocations: 237.3 kB / 388.6 MB, free: 7.668 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.01162, allocations: 302.9 kB / 388.9 MB, free: 7.289 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01162, allocations: 0 / 388.9 MB, free: 7.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0002867/0.01191, allocations: 277 kB / 389.2 MB, free: 7.012 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.01192, allocations: 10.12 kB / 389.2 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.01193, allocations: 8 kB / 389.2 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.01195, allocations: 8 kB / 389.2 MB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.01215, allocations: 103.8 kB / 389.3 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.01215, allocations: 4 kB / 389.3 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.473e-05/0.01224, allocations: 19.98 kB / 389.4 MB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.01225, allocations: 19.94 kB / 389.4 MB, free: 6.844 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.0001032/0.01236, allocations: 180.4 kB / 389.6 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.01242, allocations: 43.81 kB / 389.6 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.01246, allocations: 33.77 kB / 389.6 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01246, allocations: 8 kB / 389.6 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.01247, allocations: 7.938 kB / 389.6 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.01247, allocations: 0 / 389.6 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006975/0.01317, allocations: 0.9282 MB / 390.6 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01317, allocations: 0 / 390.6 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.01334, allocations: 75.89 kB / 390.7 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.01334, allocations: 0 / 390.7 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.01336, allocations: 12.06 kB / 390.7 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.01336, allocations: 4 kB / 390.7 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.01336, allocations: 0 / 390.7 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.01388, allocations: 0.7387 MB / 391.4 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.535e-05/0.01391, allocations: 23.81 kB / 391.4 MB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.01393, allocations: 11.98 kB / 391.4 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.01407, allocations: 12 kB / 391.5 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/0.01412, allocations: 32.12 kB / 391.5 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.01413, allocations: 11.98 kB / 391.5 MB, free: 4.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.769e-05/0.01421, allocations: 193 kB / 391.7 MB, free: 4.457 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01421, allocations: 0 / 391.7 MB, free: 4.457 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002803/0.01449, allocations: 71.94 kB / 391.8 MB, free: 4.387 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 9.114e-05/0.01458, allocations: 103.2 kB / 391.9 MB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.01478, allocations: 161.1 kB / 392 MB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01478, allocations: 0 / 392 MB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.186e-05/0.01487, allocations: 91.5 kB / 392.1 MB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.01526, allocations: 49.44 kB / 392.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009923/0.01626, allocations: 0.7363 MB / 392.9 MB, free: 3.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.792e-05/0.01633, allocations: 92.92 kB / 393 MB, free: 3.066 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.855e-05/0.01641, allocations: 38.94 kB / 393 MB, free: 3.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.01653, allocations: 118.2 kB / 393.1 MB, free: 2.914 MB / 362.7 MB Notification: Performance of SimCode: time 1.512e-06/0.01653, allocations: 0 / 393.1 MB, free: 2.914 MB / 362.7 MB Notification: Performance of Templates: time 0.004612/0.02114, allocations: 2.615 MB / 395.7 MB, free: 356 kB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.426280163694173]