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.001536/0.001536, allocations: 77.88 kB / 21.42 MB, free: 3.078 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.002004/0.002004, allocations: 167.1 kB / 24.82 MB, free: 8.875 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.184/1.184, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.3799/0.3799, allocations: 34.26 MB / 296.1 MB, free: 0.6562 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.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 3.276e-06/3.276e-06, allocations: 0 / 378.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.313e-05/4.641e-05, allocations: 2.312 kB / 378.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00414/0.004187, allocations: 1.956 MB / 380.4 MB, free: 416 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.005323, allocations: 0.553 MB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.005463, allocations: 4 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.005644, allocations: 27.67 kB / 381 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 9.948e-05/0.005743, allocations: 39.64 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.006051, allocations: 51.8 kB / 381.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.00628, allocations: 151.3 kB / 381.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.00649, allocations: 41.83 kB / 381.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.006772, allocations: 99.73 kB / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.006923, allocations: 51.81 kB / 381.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.006955, allocations: 12 kB / 381.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.007027, allocations: 16 kB / 381.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.007061, allocations: 27.91 kB / 381.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.415e-05/0.007115, allocations: 47.84 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.007377, allocations: 103.6 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.00738, allocations: 0 / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.007383, allocations: 0 / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.007392, allocations: 0 / 381.6 MB, free: 15.18 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006329/0.008025, allocations: 471.9 kB / 382.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.008083, allocations: 12.03 kB / 382.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.008271, allocations: 36.77 kB / 382.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.008483, allocations: 152.5 kB / 382.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.008501, allocations: 8.375 kB / 382.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.008537, allocations: 16.38 kB / 382.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.008727, allocations: 106.8 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.008741, allocations: 192 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.008754, allocations: 8.125 kB / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.008762, allocations: 11.94 kB / 382.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.408e-05/0.008826, allocations: 35.95 kB / 382.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.009391, allocations: 391.9 kB / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.009542, allocations: 90.95 kB / 383 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.433e-05/0.009587, allocations: 31.66 kB / 383 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.009609, allocations: 4 kB / 383 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.009639, allocations: 37.39 kB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.194e-06/0.009642, allocations: 0 / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009669/0.01061, allocations: 0.5441 MB / 383.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.01065, allocations: 55.41 kB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.0108, allocations: 185.8 kB / 383.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.01082, allocations: 29.7 kB / 383.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.01093, allocations: 159.1 kB / 384 MB, free: 12.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/0.01098, allocations: 71.41 kB / 384.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.95e-05/0.01104, allocations: 35.38 kB / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.01125, allocations: 0.4962 MB / 384.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.577e-05/0.01129, allocations: 23.97 kB / 384.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.621e-05/0.01137, allocations: 65.66 kB / 384.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.01149, allocations: 90.66 kB / 384.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.01149, allocations: 0 / 384.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002709/0.01176, allocations: 165 kB / 384.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.01178, allocations: 11.94 kB / 384.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.01179, allocations: 0 / 384.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.01195, allocations: 43.69 kB / 385 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.01207, allocations: 31.98 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.01348, allocations: 2.079 MB / 387.1 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.673e-05/0.01352, allocations: 8.25 kB / 387.1 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.01354, allocations: 4 kB / 387.1 MB, free: 9.316 MB / 362.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 0.0001242/0.01366, allocations: 176.5 kB / 387.3 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.01369, allocations: 19.89 kB / 387.3 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.01372, allocations: 16.78 kB / 387.3 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.01372, allocations: 4 kB / 387.3 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.01373, allocations: 0 / 387.3 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.01373, allocations: 3.984 kB / 387.3 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008747/0.01461, allocations: 459.1 kB / 387.8 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.01461, allocations: 8.016 kB / 387.8 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.01472, allocations: 31.92 kB / 387.8 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.993e-05/0.01482, allocations: 35.7 kB / 387.8 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.01483, allocations: 3.938 kB / 387.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.01586, allocations: 1.776 MB / 389.6 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.01586, allocations: 4.031 kB / 389.6 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.01615, allocations: 326.9 kB / 390 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.01616, allocations: 11.95 kB / 390 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.01617, allocations: 3.938 kB / 390 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.476e-05/0.01622, allocations: 8 kB / 390 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.01627, allocations: 15.91 kB / 390 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.01627, allocations: 8 kB / 390 MB, free: 6.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.102e-05/0.01634, allocations: 138.7 kB / 390.1 MB, free: 6.098 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.01634, allocations: 0 / 390.1 MB, free: 6.098 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.01658, allocations: 40 kB / 390.2 MB, free: 6.059 MB / 362.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 0.0001495/0.01673, allocations: 99.28 kB / 390.3 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004142/0.01714, allocations: 283.8 kB / 390.5 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.01715, allocations: 0 / 390.5 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.01731, allocations: 237.4 kB / 390.8 MB, free: 5.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.01759, allocations: 28.22 kB / 390.8 MB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008819/0.01848, allocations: 380.6 kB / 391.2 MB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.629e-05/0.01855, allocations: 76.22 kB / 391.3 MB, free: 4.867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.509e-05/0.0186, allocations: 13.48 kB / 391.3 MB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.497e-05/0.01868, allocations: 90.19 kB / 391.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of SimCode: time 2.013e-06/0.01869, allocations: 0 / 391.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of Templates: time 0.004844/0.02353, allocations: 1.74 MB / 393.1 MB, free: 3.043 MB / 362.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.498030695132911]