Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001009/0.001009, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001125/0.001125, allocations: 163.9 kB / 25.61 MB, free: 8.582 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 0.9776/0.9776, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1524/0.1524, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.202e-05/1.374e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002002/0.002015, allocations: 1.953 MB / 379.2 MB, free: 23.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008186/0.002834, allocations: 0.5453 MB / 379.7 MB, free: 23.11 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.231e-05/0.002926, allocations: 4 kB / 379.7 MB, free: 23.1 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.003033, allocations: 23.73 kB / 379.8 MB, free: 23.08 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.016e-05/0.003103, allocations: 43.62 kB / 379.8 MB, free: 23.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.003284, allocations: 47.88 kB / 379.9 MB, free: 22.99 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.003403, allocations: 159.2 kB / 380 MB, free: 22.83 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.003516, allocations: 45.83 kB / 380.1 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.003646, allocations: 107.7 kB / 380.2 MB, free: 22.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.335e-05/0.003709, allocations: 47.83 kB / 380.2 MB, free: 22.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.003729, allocations: 12 kB / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.224e-05/0.003771, allocations: 15.98 kB / 380.2 MB, free: 22.61 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.895e-05/0.00379, allocations: 23.92 kB / 380.3 MB, free: 22.58 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.003824, allocations: 55.89 kB / 380.3 MB, free: 22.53 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.003962, allocations: 103.6 kB / 380.4 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.003964, allocations: 0 / 380.4 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.71e-07/0.003965, allocations: 0 / 380.4 MB, free: 22.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.00397, allocations: 0 / 380.4 MB, free: 22.43 MB / 314.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.0003815/0.004351, allocations: 468 kB / 380.9 MB, free: 21.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.004387, allocations: 11.98 kB / 380.9 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.004502, allocations: 32.84 kB / 380.9 MB, free: 21.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.004651, allocations: 160.3 kB / 381.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.004663, allocations: 8.375 kB / 381.1 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.004685, allocations: 12.38 kB / 381.1 MB, free: 21.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.004806, allocations: 106.8 kB / 381.2 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.004817, allocations: 192 / 381.2 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.004828, allocations: 12.12 kB / 381.2 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.004833, allocations: 0 / 381.2 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.824e-05/0.004881, allocations: 36.48 kB / 381.2 MB, free: 21.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003777/0.005259, allocations: 399.9 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.005362, allocations: 94.95 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.282e-05/0.005395, allocations: 35.66 kB / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.005408, allocations: 4 kB / 381.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.438e-05/0.005422, allocations: 33.39 kB / 381.8 MB, free: 20.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.005424, allocations: 4 kB / 381.8 MB, free: 20.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006707/0.006094, allocations: 0.5389 MB / 382.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/0.006116, allocations: 51.41 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.006177, allocations: 197.8 kB / 382.6 MB, free: 20.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.575e-06/0.006185, allocations: 25.7 kB / 382.6 MB, free: 20.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/0.006229, allocations: 163.2 kB / 382.8 MB, free: 19.85 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.006254, allocations: 63.42 kB / 382.8 MB, free: 19.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.006291, allocations: 43.34 kB / 382.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.006344, allocations: 0.4962 MB / 383.4 MB, free: 19.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.227e-05/0.006366, allocations: 15.98 kB / 383.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.212e-05/0.006408, allocations: 65.7 kB / 383.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.252e-05/0.006491, allocations: 98.38 kB / 383.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.006492, allocations: 0 / 383.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001612/0.006653, allocations: 165 kB / 383.7 MB, free: 18.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.006667, allocations: 4 kB / 383.7 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.006672, allocations: 0 / 383.7 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001082/0.00678, allocations: 39.61 kB / 383.7 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.018e-05/0.00687, allocations: 35.97 kB / 383.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007148/0.007585, allocations: 2.088 MB / 385.9 MB, free: 16.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.21e-05/0.007627, allocations: 4 kB / 385.9 MB, free: 16.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.007636, allocations: 8 kB / 385.9 MB, free: 16.56 MB / 314.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 6.265e-05/0.007698, allocations: 168.5 kB / 386 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.007723, allocations: 19.89 kB / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.919e-05/0.007742, allocations: 20.77 kB / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.007743, allocations: 4.031 kB / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.007747, allocations: 0 / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.007751, allocations: 4 kB / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/0.008068, allocations: 464.9 kB / 386.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.00807, allocations: 0 / 386.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.465e-05/0.008155, allocations: 31.98 kB / 386.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.35e-05/0.008228, allocations: 35.59 kB / 386.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.008238, allocations: 7.969 kB / 386.6 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004927/0.008731, allocations: 1.772 MB / 388.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.008732, allocations: 0 / 388.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.008912, allocations: 327 kB / 388.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-06/0.00892, allocations: 7.953 kB / 388.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-06/0.008929, allocations: 0 / 388.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.159e-05/0.00897, allocations: 16.05 kB / 388.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.009003, allocations: 15.92 kB / 388.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.00901, allocations: 11.98 kB / 388.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.421e-05/0.009034, allocations: 135.2 kB / 388.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009034, allocations: 0 / 388.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001951/0.00923, allocations: 44 kB / 388.9 MB, free: 13.3 MB / 314.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 6.281e-05/0.009292, allocations: 91.25 kB / 389 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002373/0.00953, allocations: 297.9 kB / 389.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.009531, allocations: 0 / 389.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.009647, allocations: 225.4 kB / 389.5 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.009854, allocations: 23.98 kB / 389.6 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000582/0.01044, allocations: 388.2 kB / 389.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.757e-05/0.01047, allocations: 76.22 kB / 390 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.245e-05/0.01051, allocations: 13.48 kB / 390 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.01056, allocations: 86.19 kB / 390.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01056, allocations: 0 / 390.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of Templates: time 0.003224/0.01379, allocations: 1.786 MB / 391.9 MB, free: 10.26 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.00231420295313]