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.001006/0.001006, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001254/0.001254, allocations: 170.2 kB / 24.91 MB, free: 9.207 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.026/1.026, 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.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.2691/0.2691, allocations: 32.8 MB / 294.6 MB, free: 1.254 MB / 266.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.274e-06/2.274e-06, allocations: 0 / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/3.042e-05, allocations: 5.016 kB / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003574/0.003604, allocations: 2 MB / 325.2 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.004682, allocations: 0.5531 MB / 325.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.004786, allocations: 4 kB / 325.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.004913, allocations: 15.8 kB / 325.8 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.005027, allocations: 51.56 kB / 325.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.005237, allocations: 43.88 kB / 325.9 MB, free: 6.996 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.005425, allocations: 163.8 kB / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.005585, allocations: 46.42 kB / 326.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.005785, allocations: 95.8 kB / 326.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.926e-05/0.005874, allocations: 43.88 kB / 326.3 MB, free: 6.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.005901, allocations: 12 kB / 326.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.31e-05/0.005964, allocations: 15.94 kB / 326.3 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/0.005989, allocations: 31.84 kB / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.401e-05/0.006033, allocations: 51.91 kB / 326.4 MB, free: 6.547 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.006194, allocations: 107.6 kB / 326.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006197, allocations: 0 / 326.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.006198, allocations: 0 / 326.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.006202, allocations: 0 / 326.5 MB, free: 6.441 MB / 298.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.0003876/0.00659, allocations: 341.5 kB / 326.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.006623, allocations: 8.031 kB / 326.8 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.006749, allocations: 32.91 kB / 326.8 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.006928, allocations: 142.2 kB / 327 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.006939, allocations: 8.375 kB / 327 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.006966, allocations: 16.38 kB / 327 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.007104, allocations: 102.9 kB / 327.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.007116, allocations: 4.188 kB / 327.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.007128, allocations: 12.12 kB / 327.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.007135, allocations: 4 kB / 327.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.175e-05/0.007186, allocations: 39.89 kB / 327.2 MB, free: 5.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004579/0.007644, allocations: 287.8 kB / 327.4 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.007771, allocations: 78.48 kB / 327.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.589e-05/0.007817, allocations: 29.34 kB / 327.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.007832, allocations: 0 / 327.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.007861, allocations: 38.56 kB / 327.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.007863, allocations: 0 / 327.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000979/0.008842, allocations: 0.5479 MB / 328.1 MB, free: 4.629 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.008874, allocations: 55.41 kB / 328.2 MB, free: 4.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.406e-05/0.008948, allocations: 133.7 kB / 328.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.008959, allocations: 29.7 kB / 328.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.731e-05/0.009007, allocations: 108.5 kB / 328.5 MB, free: 4.277 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.009046, allocations: 75.31 kB / 328.5 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.00909, allocations: 37.69 kB / 328.6 MB, free: 4.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.009183, allocations: 330.8 kB / 328.9 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.344e-05/0.009206, allocations: 15.98 kB / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-05/0.009249, allocations: 46.42 kB / 329 MB, free: 3.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.239e-05/0.009331, allocations: 81.11 kB / 329 MB, free: 3.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.009335, allocations: 4 kB / 329 MB, free: 3.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001746/0.009509, allocations: 134.3 kB / 329.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.009522, allocations: 4 kB / 329.2 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.009528, allocations: 3.984 kB / 329.2 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001103/0.009638, allocations: 36.88 kB / 329.2 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.009772, allocations: 43.91 kB / 329.3 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009219/0.01069, allocations: 1.442 MB / 330.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.965e-05/0.01074, allocations: 8.031 kB / 330.7 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.01075, allocations: 8 kB / 330.7 MB, free: 1.887 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.259e-05/0.01084, allocations: 121.7 kB / 330.8 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.01086, allocations: 15.98 kB / 330.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.085e-05/0.01088, allocations: 12.78 kB / 330.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.01089, allocations: 8.031 kB / 330.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.01089, allocations: 0 / 330.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.0109, allocations: 3.938 kB / 330.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.01129, allocations: 349 kB / 331.2 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.0113, allocations: 3.984 kB / 331.2 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.01143, allocations: 42.41 kB / 331.3 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-05/0.01152, allocations: 24.78 kB / 331.3 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.01154, allocations: 8 kB / 331.3 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007788/0.01231, allocations: 1.222 MB / 332.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.01232, allocations: 0 / 332.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.01254, allocations: 247.3 kB / 332.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.111e-05/0.01255, allocations: 15.89 kB / 332.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.01256, allocations: 0 / 332.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.876e-05/0.01261, allocations: 12.08 kB / 332.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.01265, allocations: 23.89 kB / 332.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.01266, allocations: 4 kB / 332.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.335e-05/0.01268, allocations: 27.42 kB / 332.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01268, allocations: 0 / 332.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002008/0.01288, allocations: 44 kB / 332.9 MB, free: 15.57 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 8.516e-05/0.01296, allocations: 72.42 kB / 332.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.01323, allocations: 213.2 kB / 333.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.01324, allocations: 0 / 333.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.01336, allocations: 185.8 kB / 333.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.01354, allocations: 19.98 kB / 333.4 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006257/0.01416, allocations: 359.9 kB / 333.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.43e-05/0.01422, allocations: 80.16 kB / 333.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.748e-05/0.01425, allocations: 9.484 kB / 333.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.812e-05/0.01432, allocations: 75.34 kB / 333.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01432, allocations: 4 kB / 333.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Templates: time 0.003883/0.01821, allocations: 1.76 MB / 335.6 MB, free: 12.76 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 -s gbode -gbm=radauIIA3 -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: 2.859764526132494]