Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002285/0.002285, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001965/0.001965, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3413/0.3413, allocations: 34.25 MB / 295.2 MB, free: 0.6484 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.459e-06/4.459e-06, allocations: 4 kB / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.423e-05/2.869e-05, allocations: 2.312 kB / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004367/0.004396, allocations: 2.602 MB / 379.8 MB, free: 332 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.005763, allocations: 0.7127 MB / 380.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.005909, allocations: 11.94 kB / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.006074, allocations: 43.53 kB / 380.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.006267, allocations: 95.12 kB / 380.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.006577, allocations: 95.86 kB / 380.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.007005, allocations: 354.2 kB / 381.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.007159, allocations: 54.08 kB / 381.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000327/0.007486, allocations: 195.6 kB / 381.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.007661, allocations: 99.69 kB / 381.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.007705, allocations: 24 kB / 381.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.75e-05/0.007793, allocations: 31.94 kB / 381.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.131e-05/0.007854, allocations: 55.75 kB / 381.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.007976, allocations: 99.75 kB / 381.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.008402, allocations: 310.9 kB / 381.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.008408, allocations: 3.984 kB / 381.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.008409, allocations: 0 / 381.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.008419, allocations: 4 kB / 381.9 MB, free: 14.15 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.001114/0.009532, allocations: 0.6242 MB / 382.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.009573, allocations: 12.03 kB / 382.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.009858, allocations: 72.67 kB / 382.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.0102, allocations: 212.1 kB / 382.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.01023, allocations: 20.88 kB / 382.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.01029, allocations: 36.31 kB / 382.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.01081, allocations: 294.6 kB / 383.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.01083, allocations: 4.188 kB / 383.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.01085, allocations: 8.375 kB / 383.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01086, allocations: 11.94 kB / 383.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.01125, allocations: 167.8 kB / 383.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.01319, allocations: 1.495 MB / 384.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007057/0.01389, allocations: 272.4 kB / 385.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.01409, allocations: 98.72 kB / 385.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.01412, allocations: 7.938 kB / 385.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.01415, allocations: 41.39 kB / 385.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.192e-06/0.01416, allocations: 0 / 385.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002369/0.01652, allocations: 1.179 MB / 386.5 MB, free: 9.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.01663, allocations: 136.5 kB / 386.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.01696, allocations: 324.2 kB / 386.9 MB, free: 8.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.01699, allocations: 29.7 kB / 386.9 MB, free: 8.699 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.01717, allocations: 235.3 kB / 387.2 MB, free: 8.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.01729, allocations: 127.1 kB / 387.3 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.01742, allocations: 87.8 kB / 387.4 MB, free: 8.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002841/0.0177, allocations: 0.5235 MB / 387.9 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.01792, allocations: 84.95 kB / 388 MB, free: 7.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.01831, allocations: 294.5 kB / 388.3 MB, free: 7.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.01898, allocations: 427 kB / 388.7 MB, free: 6.758 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01898, allocations: 0 / 388.7 MB, free: 6.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007536/0.01974, allocations: 397.1 kB / 389.1 MB, free: 6.363 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.01975, allocations: 8 kB / 389.1 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.01976, allocations: 4 kB / 389.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.01979, allocations: 11.94 kB / 389.1 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.02014, allocations: 99.81 kB / 389.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.02015, allocations: 4 kB / 389.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.02033, allocations: 23.98 kB / 389.2 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.02036, allocations: 16 kB / 389.3 MB, free: 6.199 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.0001892/0.02055, allocations: 200.4 kB / 389.4 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.02066, allocations: 43.88 kB / 389.5 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.78e-05/0.02074, allocations: 33.77 kB / 389.5 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.02075, allocations: 7.938 kB / 389.5 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.02075, allocations: 4 kB / 389.5 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.02076, allocations: 0 / 389.5 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.02231, allocations: 1.092 MB / 390.6 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.02231, allocations: 8.094 kB / 390.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.02266, allocations: 75.95 kB / 390.7 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.02266, allocations: 0 / 390.7 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.02268, allocations: 11.94 kB / 390.7 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.02269, allocations: 7.984 kB / 390.7 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02269, allocations: 0 / 390.7 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.02377, allocations: 0.891 MB / 391.6 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.02381, allocations: 27.81 kB / 391.6 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.02385, allocations: 11.98 kB / 391.7 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.0241, allocations: 8 kB / 391.7 MB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.02418, allocations: 32.12 kB / 391.7 MB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.0242, allocations: 12 kB / 391.7 MB, free: 3.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001855/0.02439, allocations: 209.1 kB / 391.9 MB, free: 3.445 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02439, allocations: 0 / 391.9 MB, free: 3.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004547/0.02484, allocations: 71.94 kB / 392 MB, free: 3.375 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.0003552/0.0252, allocations: 111.2 kB / 392.1 MB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.0258, allocations: 268.2 kB / 392.4 MB, free: 2.988 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.0258, allocations: 4 kB / 392.4 MB, free: 2.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.02607, allocations: 128.4 kB / 392.5 MB, free: 2.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.0267, allocations: 52.33 kB / 392.5 MB, free: 2.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.02802, allocations: 0.7682 MB / 393.3 MB, free: 1.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.02821, allocations: 164.1 kB / 393.5 MB, free: 1.797 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.02833, allocations: 34.95 kB / 393.5 MB, free: 1.766 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.351e-05/0.02842, allocations: 28.5 kB / 393.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02842, allocations: 0 / 393.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of Templates: time 0.006639/0.03506, allocations: 2.4 MB / 395.9 MB, free: 15.36 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.047548656933941]