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.001379/0.001379, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001476/0.001476, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.507/1.507, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] 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.23/0.23, allocations: 34.28 MB / 295 MB, free: 14.58 MB / 286.1 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 2.515e-06/2.515e-06, allocations: 0 / 442.6 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.179e-05/3.431e-05, allocations: 2.281 kB / 442.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004457/0.004491, allocations: 2.481 MB / 445.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.006403, allocations: 0.7009 MB / 445.8 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.006785, allocations: 11.88 kB / 445.8 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002506/0.007036, allocations: 39.59 kB / 445.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003783/0.007414, allocations: 95.14 kB / 446 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005396/0.007953, allocations: 107.7 kB / 446.1 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007039/0.008657, allocations: 350.3 kB / 446.4 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.008925, allocations: 50.16 kB / 446.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005672/0.009492, allocations: 195.5 kB / 446.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.009742, allocations: 99.69 kB / 446.8 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.078e-05/0.009792, allocations: 20 kB / 446.8 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.979e-05/0.009892, allocations: 31.94 kB / 446.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.009957, allocations: 67.73 kB / 446.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.01011, allocations: 91.77 kB / 447 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004715/0.01058, allocations: 307 kB / 447.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.01059, allocations: 0 / 447.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.01059, allocations: 4 kB / 447.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.0106, allocations: 0 / 447.3 MB, free: 0.793 MB / 366.1 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.001172/0.01178, allocations: 0.5245 MB / 447.8 MB, free: 244 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.01182, allocations: 8.031 kB / 447.8 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003074/0.01213, allocations: 56.67 kB / 447.9 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2206/0.2327, allocations: 201.6 kB / 448.1 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.2327, allocations: 22.62 kB / 448.1 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.2328, allocations: 29.36 kB / 448.1 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.2334, allocations: 279.2 kB / 448.4 MB, free: 19.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.2334, allocations: 4.906 kB / 448.4 MB, free: 19.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.2334, allocations: 17.77 kB / 448.4 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2334, allocations: 6.656 kB / 448.4 MB, free: 19.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.2339, allocations: 187.4 kB / 448.6 MB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.2354, allocations: 1.161 MB / 449.7 MB, free: 18.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.2358, allocations: 231.2 kB / 450 MB, free: 18.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.236, allocations: 96.38 kB / 450.1 MB, free: 18.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.236, allocations: 4.906 kB / 450.1 MB, free: 18.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.236, allocations: 39 kB / 450.1 MB, free: 18.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.236, allocations: 6.312 kB / 450.1 MB, free: 18.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002239/0.2382, allocations: 1.207 MB / 451.3 MB, free: 17.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.2383, allocations: 133.2 kB / 451.5 MB, free: 17.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.2385, allocations: 226.4 kB / 451.7 MB, free: 17.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.2385, allocations: 36.08 kB / 451.7 MB, free: 17.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.2386, allocations: 181.8 kB / 451.9 MB, free: 16.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.746e-05/0.2387, allocations: 121.7 kB / 452 MB, free: 16.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.391e-05/0.2388, allocations: 70.91 kB / 452.1 MB, free: 16.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.2388, allocations: 337.8 kB / 452.4 MB, free: 16.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.2391, allocations: 98.89 kB / 452.5 MB, free: 16.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.2394, allocations: 244.1 kB / 452.7 MB, free: 16.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006154/0.24, allocations: 364 kB / 453.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.24, allocations: 3.188 kB / 453.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008414/0.2409, allocations: 396.5 kB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.2409, allocations: 6.875 kB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2409, allocations: 13.23 kB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.2409, allocations: 6.875 kB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/0.2413, allocations: 98.73 kB / 453.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.899e-05/0.2413, allocations: 12.5 kB / 453.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.2416, allocations: 24.97 kB / 453.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.2416, allocations: 22.95 kB / 453.7 MB, free: 15.8 MB / 366.1 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.0001519/0.2418, allocations: 154.1 kB / 453.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.2419, allocations: 30.31 kB / 453.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.685e-05/0.242, allocations: 39.92 kB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.242, allocations: 5 kB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.242, allocations: 1.375 kB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.242, allocations: 7.688 kB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.2434, allocations: 0.8773 MB / 454.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2434, allocations: 1.578 kB / 454.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003879/0.2438, allocations: 80.11 kB / 454.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.2438, allocations: 3.047 kB / 454.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.2438, allocations: 12.11 kB / 454.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.2438, allocations: 8.219 kB / 454.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.2438, allocations: 4.156 kB / 454.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/0.2448, allocations: 0.7336 MB / 455.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.2449, allocations: 28.86 kB / 455.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.2449, allocations: 8.547 kB / 455.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.2452, allocations: 17.81 kB / 455.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2453, allocations: 34.47 kB / 455.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2453, allocations: 8.891 kB / 455.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.2455, allocations: 163.2 kB / 455.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2455, allocations: 0 / 455.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004986/0.246, allocations: 64.75 kB / 455.9 MB, free: 14.33 MB / 366.1 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.0001154/0.2461, allocations: 105.2 kB / 456 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006782/0.2467, allocations: 276.2 kB / 456.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2468, allocations: 0 / 456.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.247, allocations: 124.7 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007104/0.2478, allocations: 37.97 kB / 456.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2491, allocations: 0.7398 MB / 457.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.2493, allocations: 163.1 kB / 457.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001503/0.2495, allocations: 35.27 kB / 457.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.721e-05/0.2495, allocations: 27.38 kB / 457.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2496, allocations: 0 / 457.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Templates: time 0.007586/0.2571, allocations: 2.381 MB / 459.8 MB, free: 13.19 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.008796613663435]