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.0009245/0.0009245, allocations: 76.17 kB / 9.933 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001271/0.002195, allocations: 449.7 kB / 10.37 MB, free: 324 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.0007427/0.0007427, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009151/0.001658, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.174/1.174, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1161/1.29, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.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.3915/0.3915, allocations: 32.79 MB / 276.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03782/0.4293, allocations: 12.53 MB / 289.3 MB, free: 8.676 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 2.054e-06/2.054e-06, allocations: 3.938 kB / 290.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.342e-05, allocations: 3.078 kB / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00273/0.002754, allocations: 2.009 MB / 292.6 MB, free: 6.066 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007878/0.003541, allocations: 0.5576 MB / 293.2 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.836e-05/0.00361, allocations: 6.688 kB / 293.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.38e-05/0.003664, allocations: 22.62 kB / 293.2 MB, free: 5.605 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.722e-05/0.003731, allocations: 48.33 kB / 293.2 MB, free: 5.562 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001051/0.003836, allocations: 46.81 kB / 293.3 MB, free: 5.523 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.003993, allocations: 160.6 kB / 293.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.941e-05/0.004082, allocations: 39.75 kB / 293.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.004228, allocations: 113.5 kB / 293.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.004298, allocations: 43.89 kB / 293.6 MB, free: 5.273 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.004314, allocations: 12 kB / 293.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.323e-05/0.004357, allocations: 15.98 kB / 293.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.004378, allocations: 23.88 kB / 293.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.901e-05/0.004417, allocations: 39.94 kB / 293.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.004555, allocations: 103.5 kB / 293.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/0.004565, allocations: 0 / 293.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004565, allocations: 0 / 293.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.004573, allocations: 4 kB / 293.8 MB, free: 5.078 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.0003316/0.004905, allocations: 372.6 kB / 294.2 MB, free: 4.691 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.565e-05/0.004931, allocations: 12.03 kB / 294.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.954e-05/0.00503, allocations: 102 kB / 294.3 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.005152, allocations: 139.3 kB / 294.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.005161, allocations: 16.38 kB / 294.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.005178, allocations: 16.36 kB / 294.5 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.00528, allocations: 107.4 kB / 294.6 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-06/0.005286, allocations: 192 / 294.6 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.005294, allocations: 8.125 kB / 294.6 MB, free: 4.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.005298, allocations: 4 kB / 294.6 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.824e-05/0.005347, allocations: 35.95 kB / 294.6 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003723/0.005719, allocations: 295.7 kB / 294.9 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.005835, allocations: 74.53 kB / 295 MB, free: 3.824 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.756e-05/0.005872, allocations: 32.84 kB / 295 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.005888, allocations: 4 kB / 295 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.005913, allocations: 30.56 kB / 295 MB, free: 3.746 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.582e-06/0.005914, allocations: 0 / 295 MB, free: 3.746 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009058/0.00682, allocations: 0.5416 MB / 295.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.006855, allocations: 55.36 kB / 295.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.716e-05/0.006932, allocations: 132.9 kB / 295.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.006947, allocations: 33.64 kB / 295.8 MB, free: 2.902 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.095e-05/0.006998, allocations: 116.4 kB / 295.9 MB, free: 2.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.007037, allocations: 67.38 kB / 296 MB, free: 2.719 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.007076, allocations: 37.69 kB / 296 MB, free: 2.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.007172, allocations: 326.8 kB / 296.3 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.103e-05/0.007193, allocations: 19.94 kB / 296.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.303e-05/0.007236, allocations: 48.91 kB / 296.4 MB, free: 2.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.229e-05/0.007318, allocations: 75.97 kB / 296.5 MB, free: 2.184 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.007319, allocations: 0 / 296.5 MB, free: 2.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000147/0.007466, allocations: 139.4 kB / 296.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.007481, allocations: 8 kB / 296.6 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.007486, allocations: 0 / 296.6 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001024/0.007588, allocations: 36.86 kB / 296.7 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.00773, allocations: 47.28 kB / 296.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008688/0.008599, allocations: 1.438 MB / 298.1 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.372e-05/0.008633, allocations: 8 kB / 298.1 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.00864, allocations: 8.031 kB / 298.2 MB, free: 416 kB / 282.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 7.681e-05/0.008717, allocations: 121.8 kB / 298.3 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.887e-05/0.008736, allocations: 8 kB / 298.3 MB, free: 276 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.008757, allocations: 24.77 kB / 298.3 MB, free: 256 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.008759, allocations: 4 kB / 298.3 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.008762, allocations: 0 / 298.3 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.008766, allocations: 0 / 298.3 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003406/0.009106, allocations: 346.8 kB / 298.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.009109, allocations: 0 / 298.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.009222, allocations: 48.09 kB / 298.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.189e-05/0.009234, allocations: 11.89 kB / 298.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.537e-05/0.009309, allocations: 24.83 kB / 298.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.009321, allocations: 12 kB / 298.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007624/0.01008, allocations: 1.225 MB / 300 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01009, allocations: 0 / 300 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.0103, allocations: 247.4 kB / 300.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.01031, allocations: 4 kB / 300.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.679e-05/0.01036, allocations: 15.92 kB / 300.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.01039, allocations: 7.984 kB / 300.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.0104, allocations: 11.98 kB / 300.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.87e-05/0.01042, allocations: 19.09 kB / 300.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01042, allocations: 4.062 kB / 300.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001793/0.0106, allocations: 40 kB / 300.3 MB, free: 14.1 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 9.373e-05/0.01069, allocations: 84.34 kB / 300.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002746/0.01097, allocations: 210.3 kB / 300.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.01097, allocations: 4 kB / 300.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.0111, allocations: 187.4 kB / 300.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/0.01129, allocations: 35.92 kB / 300.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.0135, allocations: 341 kB / 301.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.557e-05/0.01356, allocations: 76.22 kB / 301.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.01359, allocations: 13.48 kB / 301.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/0.01367, allocations: 71.34 kB / 301.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.01367, allocations: 0 / 301.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of Templates: time 0.003818/0.01748, allocations: 1.8 MB / 303.1 MB, free: 11.25 MB / 298.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 -ignoreHideResult -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.400936285033822]