Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001285/0.001285, allocations: 77.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001991/0.003277, allocations: 449.8 kB / 10.44 MB, free: 248 kB / 10.45 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.001106/0.001106, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001506/0.002612, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 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.095/1.095, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.118/1.213, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.3314/0.3314, allocations: 34.25 MB / 278.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03273/0.3641, allocations: 13.11 MB / 291.5 MB, free: 7.34 MB / 282.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 292.8 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.215e-05, allocations: 4.406 kB / 292.8 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002545/0.002567, allocations: 2.002 MB / 294.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007254/0.003292, allocations: 0.5654 MB / 295.4 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.165e-05/0.003374, allocations: 4 kB / 295.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.38e-05/0.003448, allocations: 15.8 kB / 295.4 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.302e-05/0.003521, allocations: 51.56 kB / 295.5 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001249/0.003646, allocations: 47.81 kB / 295.5 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.003801, allocations: 163.2 kB / 295.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.003929, allocations: 42.48 kB / 295.7 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.004118, allocations: 103.8 kB / 295.8 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.004219, allocations: 51.81 kB / 295.9 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.004242, allocations: 15.94 kB / 295.9 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.632e-05/0.004308, allocations: 12 kB / 295.9 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.456e-05/0.004333, allocations: 19.94 kB / 295.9 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/0.004372, allocations: 39.94 kB / 295.9 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.004537, allocations: 103.5 kB / 296 MB, free: 2.988 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.244e-05/0.00455, allocations: 0 / 296 MB, free: 2.988 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004551, allocations: 0 / 296 MB, free: 2.988 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.004559, allocations: 4 kB / 296 MB, free: 2.984 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004902/0.00505, allocations: 373.2 kB / 296.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.005084, allocations: 8.031 kB / 296.4 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.00525, allocations: 106 kB / 296.5 MB, free: 2.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.005415, allocations: 138.2 kB / 296.7 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.005427, allocations: 8.375 kB / 296.7 MB, free: 2.301 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.005455, allocations: 12.38 kB / 296.7 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.0056, allocations: 107.4 kB / 296.8 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.00561, allocations: 4.188 kB / 296.8 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.005625, allocations: 16.11 kB / 296.8 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.005632, allocations: 7.938 kB / 296.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.974e-05/0.005681, allocations: 31.95 kB / 296.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.006088, allocations: 295.7 kB / 297.1 MB, free: 1.812 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.006202, allocations: 78.42 kB / 297.2 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.713e-05/0.006239, allocations: 32.84 kB / 297.2 MB, free: 1.691 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.006253, allocations: 0 / 297.2 MB, free: 1.691 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.006278, allocations: 42.55 kB / 297.3 MB, free: 1.641 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.052e-06/0.006279, allocations: 0 / 297.3 MB, free: 1.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008661/0.007145, allocations: 0.5458 MB / 297.8 MB, free: 1.039 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.007178, allocations: 51.41 kB / 297.9 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.007253, allocations: 137.2 kB / 298 MB, free: 0.832 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.007269, allocations: 33.7 kB / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.007321, allocations: 104.4 kB / 298.1 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.765e-05/0.007359, allocations: 75.36 kB / 298.2 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.007397, allocations: 37.69 kB / 298.3 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.00748, allocations: 322.8 kB / 298.6 MB, free: 248 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.94e-05/0.0075, allocations: 12 kB / 298.6 MB, free: 236 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.101e-05/0.007541, allocations: 51.39 kB / 298.6 MB, free: 172 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.823e-05/0.007619, allocations: 89.61 kB / 298.7 MB, free: 72 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.00762, allocations: 0 / 298.7 MB, free: 72 kB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000154/0.007774, allocations: 126.2 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.007786, allocations: 4 kB / 298.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.007792, allocations: 3.984 kB / 298.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001144/0.007907, allocations: 32.91 kB / 298.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.008049, allocations: 51.94 kB / 298.9 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009246/0.008974, allocations: 1.438 MB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.523e-05/0.009009, allocations: 8 kB / 300.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.009018, allocations: 7.984 kB / 300.4 MB, free: 14.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.334e-05/0.009102, allocations: 129.7 kB / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.976e-05/0.009121, allocations: 12.03 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.009147, allocations: 20.77 kB / 300.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.009149, allocations: 4 kB / 300.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.009152, allocations: 0 / 300.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.009156, allocations: 0 / 300.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.009488, allocations: 338.6 kB / 300.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.00949, allocations: 192 / 300.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.009595, allocations: 43.97 kB / 300.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.009609, allocations: 23.89 kB / 300.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.71e-05/0.009676, allocations: 28.84 kB / 301 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.009684, allocations: 0 / 301 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006729/0.01036, allocations: 1.225 MB / 302.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.01036, allocations: 8.031 kB / 302.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.01055, allocations: 240.4 kB / 302.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.01056, allocations: 11.98 kB / 302.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.064e-05/0.0106, allocations: 3.938 kB / 302.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.304e-05/0.01064, allocations: 23.91 kB / 302.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.01064, allocations: 0 / 302.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.171e-05/0.01066, allocations: 24.84 kB / 302.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01066, allocations: 0 / 302.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001805/0.01084, allocations: 36 kB / 302.5 MB, free: 12 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 7.479e-05/0.01092, allocations: 88.44 kB / 302.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.01117, allocations: 219.2 kB / 302.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.01118, allocations: 3.984 kB / 302.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.01132, allocations: 189 kB / 303 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.01154, allocations: 178.6 kB / 303.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.01423, allocations: 340.6 kB / 303.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.938e-05/0.01428, allocations: 76.22 kB / 303.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.355e-05/0.01432, allocations: 9.5 kB / 303.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.133e-05/0.01441, allocations: 71.36 kB / 303.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01441, allocations: 0 / 303.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Templates: time 0.003893/0.01831, allocations: 1.914 MB / 305.6 MB, free: 8.859 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.052286214195192]