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.001236/0.001236, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001395/0.001395, allocations: 161 kB / 24.56 MB, free: 16 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.024/1.024, allocations: 177.1 MB / 205 MB, free: 5.641 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.2857/0.2857, allocations: 34.27 MB / 295.7 MB, free: 0.7734 MB / 266.7 MB " [Timeout remaining time 180] 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 1.383e-06/1.383e-06, allocations: 0 / 378 MB, free: 2.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.436e-05, allocations: 9.969 kB / 378 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004319/0.004344, allocations: 2.638 MB / 380.6 MB, free: 44 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.005593, allocations: 0.7088 MB / 381.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.005759, allocations: 11.88 kB / 381.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.005905, allocations: 43.52 kB / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.006047, allocations: 99.12 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.006332, allocations: 103.8 kB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.006631, allocations: 346.3 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.006776, allocations: 62.06 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.007025, allocations: 191.6 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.007146, allocations: 99.69 kB / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.007178, allocations: 24 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.007236, allocations: 24 kB / 382.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.007276, allocations: 63.73 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.123e-05/0.007347, allocations: 95.77 kB / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.007591, allocations: 215.1 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.007594, allocations: 4 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007595, allocations: 0 / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.007599, allocations: 0 / 382.7 MB, free: 13.96 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.0005983/0.008198, allocations: 0.6089 MB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.008236, allocations: 16.03 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.008409, allocations: 68.69 kB / 383.4 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.008653, allocations: 224 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.008669, allocations: 20.88 kB / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.008713, allocations: 28.33 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.009001, allocations: 259.4 kB / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.009016, allocations: 12.12 kB / 383.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.009034, allocations: 8.375 kB / 383.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.009044, allocations: 11.94 kB / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.009193, allocations: 99.84 kB / 384 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.01024, allocations: 1.424 MB / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.01047, allocations: 212.3 kB / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.902e-05/0.01055, allocations: 66.73 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.01057, allocations: 4 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.0106, allocations: 53.5 kB / 385.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.452e-06/0.0106, allocations: 0 / 385.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001186/0.01179, allocations: 1.007 MB / 386.8 MB, free: 9.473 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.01183, allocations: 136.5 kB / 386.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.01215, allocations: 288.2 kB / 387.2 MB, free: 9.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.01217, allocations: 29.7 kB / 387.3 MB, free: 8.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.248e-05/0.01226, allocations: 227.3 kB / 387.5 MB, free: 8.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.317e-05/0.01232, allocations: 119 kB / 387.6 MB, free: 8.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.107e-05/0.01239, allocations: 83.8 kB / 387.7 MB, free: 8.543 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.01251, allocations: 0.504 MB / 388.2 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.451e-05/0.01258, allocations: 40.97 kB / 388.2 MB, free: 7.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.01273, allocations: 242.6 kB / 388.5 MB, free: 7.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.01299, allocations: 315.3 kB / 388.8 MB, free: 7.273 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.013, allocations: 4 kB / 388.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003368/0.01333, allocations: 301 kB / 389.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.01335, allocations: 9.875 kB / 389.1 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.01336, allocations: 4 kB / 389.1 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.01337, allocations: 12.34 kB / 389.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.01358, allocations: 103.8 kB / 389.2 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.01359, allocations: 8 kB / 389.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.611e-05/0.01369, allocations: 19.98 kB / 389.2 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.0137, allocations: 20 kB / 389.2 MB, free: 6.797 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 9.144e-05/0.01379, allocations: 184.4 kB / 389.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.977e-05/0.01386, allocations: 39.81 kB / 389.5 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.031e-05/0.0139, allocations: 33.77 kB / 389.5 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.01391, allocations: 7.938 kB / 389.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.01391, allocations: 4 kB / 389.5 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01392, allocations: 7.984 kB / 389.5 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007384/0.01466, allocations: 0.9704 MB / 390.5 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.01466, allocations: 4 kB / 390.5 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.01484, allocations: 71.89 kB / 390.5 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.01485, allocations: 4 kB / 390.6 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.01486, allocations: 8 kB / 390.6 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01487, allocations: 4 kB / 390.6 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.01487, allocations: 8.047 kB / 390.6 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.01532, allocations: 0.7544 MB / 391.3 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.01535, allocations: 27.81 kB / 391.4 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.01537, allocations: 8 kB / 391.4 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.01551, allocations: 11.98 kB / 391.4 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.01557, allocations: 35.83 kB / 391.4 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.01558, allocations: 8.422 kB / 391.4 MB, free: 4.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.948e-05/0.01567, allocations: 193.1 kB / 391.6 MB, free: 4.332 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01567, allocations: 0 / 391.6 MB, free: 4.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003147/0.01598, allocations: 68 kB / 391.7 MB, free: 4.266 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 8.7e-05/0.01607, allocations: 103.2 kB / 391.8 MB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.01632, allocations: 184.4 kB / 392 MB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01632, allocations: 0 / 392 MB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.65e-05/0.01642, allocations: 88.27 kB / 392 MB, free: 3.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.01684, allocations: 53.52 kB / 392.1 MB, free: 3.824 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.01787, allocations: 0.7514 MB / 392.8 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.715e-05/0.01793, allocations: 92.92 kB / 392.9 MB, free: 2.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.196e-05/0.01803, allocations: 34.95 kB / 393 MB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.958e-05/0.01809, allocations: 24.5 kB / 393 MB, free: 2.852 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01809, allocations: 4 kB / 393 MB, free: 2.848 MB / 362.7 MB Notification: Performance of Templates: time 0.004689/0.02278, allocations: 2.403 MB / 395.4 MB, free: 492 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.3327278858050704]