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.001045/0.001045, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001189/0.002235, allocations: 449.7 kB / 10.37 MB, free: 328 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.001152/0.001152, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001482/0.002635, 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 0.9983/0.9983, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09883/1.097, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.2736/0.2736, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04488/0.3185, allocations: 13.1 MB / 291.3 MB, free: 7.375 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.643e-06/1.643e-06, allocations: 0 / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.447e-05, allocations: 3.188 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003165/0.00319, allocations: 2.004 MB / 294.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.004204, allocations: 0.5654 MB / 295.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.627e-05/0.0043, allocations: 4 kB / 295.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.347e-05/0.004393, allocations: 23.8 kB / 295.2 MB, free: 3.703 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.004494, allocations: 43.58 kB / 295.2 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.004683, allocations: 55.8 kB / 295.3 MB, free: 3.605 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002161/0.004899, allocations: 151.7 kB / 295.5 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.005077, allocations: 46.47 kB / 295.5 MB, free: 3.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.005327, allocations: 103.8 kB / 295.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.005453, allocations: 51.81 kB / 295.6 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.005481, allocations: 12 kB / 295.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-05/0.005572, allocations: 16 kB / 295.7 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.109e-05/0.005603, allocations: 27.88 kB / 295.7 MB, free: 3.207 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.005646, allocations: 35.94 kB / 295.7 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.005848, allocations: 103.5 kB / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.939e-05/0.005868, allocations: 0 / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.005869, allocations: 0 / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.005884, allocations: 0 / 295.8 MB, free: 3.07 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.0004868/0.006371, allocations: 373.2 kB / 296.2 MB, free: 2.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.006403, allocations: 8.031 kB / 296.2 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.006596, allocations: 110 kB / 296.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.006801, allocations: 140 kB / 296.5 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.006818, allocations: 8.375 kB / 296.5 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.006852, allocations: 12.38 kB / 296.5 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.007016, allocations: 103.4 kB / 296.6 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.007033, allocations: 4.188 kB / 296.6 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.007049, allocations: 12.06 kB / 296.6 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.007056, allocations: 4 kB / 296.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.375e-05/0.00712, allocations: 35.95 kB / 296.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.007618, allocations: 291.8 kB / 296.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.007756, allocations: 82.41 kB / 297 MB, free: 1.816 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.27e-05/0.007799, allocations: 36.83 kB / 297 MB, free: 1.777 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.007815, allocations: 0 / 297 MB, free: 1.777 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.007842, allocations: 34.56 kB / 297.1 MB, free: 1.734 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.007844, allocations: 0 / 297.1 MB, free: 1.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008444/0.008688, allocations: 0.5369 MB / 297.6 MB, free: 1.141 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.008717, allocations: 55.41 kB / 297.7 MB, free: 1.074 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.226e-05/0.008789, allocations: 140.8 kB / 297.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.0088, allocations: 25.7 kB / 297.8 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.008846, allocations: 112.4 kB / 297.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.008881, allocations: 71.36 kB / 298 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.008919, allocations: 41.7 kB / 298 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.008998, allocations: 326.8 kB / 298.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.118e-05/0.009019, allocations: 15.98 kB / 298.4 MB, free: 328 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.009057, allocations: 47.34 kB / 298.4 MB, free: 268 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.314e-05/0.00913, allocations: 80.3 kB / 298.5 MB, free: 176 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.009132, allocations: 0 / 298.5 MB, free: 176 kB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001562/0.009288, allocations: 136.2 kB / 298.6 MB, free: 32 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.009303, allocations: 4 kB / 298.6 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.009309, allocations: 4 kB / 298.6 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001183/0.009428, allocations: 32.92 kB / 298.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.009573, allocations: 51.11 kB / 298.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008705/0.01044, allocations: 1.431 MB / 300.2 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.557e-05/0.01049, allocations: 12.27 kB / 300.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.0105, allocations: 12 kB / 300.2 MB, free: 14.4 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 9.228e-05/0.01059, allocations: 121.7 kB / 300.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.01061, allocations: 15.98 kB / 300.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.228e-05/0.01064, allocations: 12.78 kB / 300.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.01064, allocations: 7.938 kB / 300.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.01064, allocations: 0 / 300.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01065, allocations: 0 / 300.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.01101, allocations: 345 kB / 300.7 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01102, allocations: 0 / 300.7 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.01114, allocations: 47.95 kB / 300.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-06/0.01115, allocations: 11.89 kB / 300.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.01e-05/0.01122, allocations: 28.83 kB / 300.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.01123, allocations: 4 kB / 300.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000596/0.01183, allocations: 1.225 MB / 302 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.01183, allocations: 7.938 kB / 302 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.01201, allocations: 245.2 kB / 302.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.01202, allocations: 4 kB / 302.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.016e-05/0.01207, allocations: 7.938 kB / 302.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.0121, allocations: 19.91 kB / 302.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.01211, allocations: 8.062 kB / 302.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.923e-05/0.01213, allocations: 20.84 kB / 302.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01213, allocations: 0 / 302.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.01231, allocations: 36 kB / 302.3 MB, free: 12.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.162e-05/0.0124, allocations: 76.42 kB / 302.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.01264, allocations: 215.3 kB / 302.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.01265, allocations: 8 kB / 302.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.01276, allocations: 183.4 kB / 302.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.01294, allocations: 36.03 kB / 302.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.01518, allocations: 352.8 kB / 303.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.157e-05/0.01523, allocations: 76.22 kB / 303.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.073e-05/0.01527, allocations: 9.484 kB / 303.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.01534, allocations: 75.36 kB / 303.3 MB, free: 11 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01534, allocations: 0 / 303.3 MB, free: 11 MB / 298.7 MB Notification: Performance of Templates: time 0.003633/0.01897, allocations: 1.794 MB / 305.1 MB, free: 9.242 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.904763269238174]