Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.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.001263/0.001263, allocations: 81.92 kB / 19.87 MB, free: 4.621 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.001453/0.001453, allocations: 173.7 kB / 23.28 MB, free: 1.223 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.9981/0.9981, allocations: 177.1 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.005045/0.005045, allocations: 1.196 MB / 261.4 MB, free: 11.75 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/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(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") translateModel(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 331.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.825e-05/1.947e-05, allocations: 4.281 kB / 331.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.004314/0.004333, allocations: 4.032 MB / 335.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.006119, allocations: 1.343 MB / 337 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.006358, allocations: 15.94 kB / 337 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005666/0.006924, allocations: 198.5 kB / 337.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.007243, allocations: 198.3 kB / 337.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.007427, allocations: 119.8 kB / 337.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.00789, allocations: 0.6141 MB / 338.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.008144, allocations: 168 kB / 338.3 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004048/0.008549, allocations: 355.1 kB / 338.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.008794, allocations: 195.4 kB / 338.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.008855, allocations: 52 kB / 338.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.008983, allocations: 71.98 kB / 338.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.009046, allocations: 115.5 kB / 339 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.009187, allocations: 191.5 kB / 339.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004562/0.009643, allocations: 414.4 kB / 339.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.009646, allocations: 4 kB / 339.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.009648, allocations: 4 kB / 339.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.009654, allocations: 0 / 339.6 MB, free: 9.934 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0009294/0.01058, allocations: 0.8346 MB / 340.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.01062, allocations: 12.03 kB / 340.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.01085, allocations: 108.5 kB / 340.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.01121, allocations: 299.3 kB / 340.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.01125, allocations: 29.38 kB / 340.9 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.01136, allocations: 60.48 kB / 341 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.01179, allocations: 395.8 kB / 341.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.01181, allocations: 4.141 kB / 341.3 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.01184, allocations: 24.12 kB / 341.4 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.01186, allocations: 12 kB / 341.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.01208, allocations: 134.8 kB / 341.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.01362, allocations: 1.521 MB / 343 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.01388, allocations: 166.8 kB / 343.2 MB, free: 6.176 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.949e-05/0.01396, allocations: 56.3 kB / 343.2 MB, free: 6.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.01398, allocations: 7.938 kB / 343.3 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.01399, allocations: 41.39 kB / 343.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.014, allocations: 0 / 343.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004395/0.01443, allocations: 219.4 kB / 343.5 MB, free: 5.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.61e-05/0.01445, allocations: 51.41 kB / 343.6 MB, free: 5.773 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.01467, allocations: 346.1 kB / 343.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.01468, allocations: 29.7 kB / 343.9 MB, free: 5.383 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.0148, allocations: 322.9 kB / 344.2 MB, free: 5.059 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.01485, allocations: 91.23 kB / 344.3 MB, free: 4.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.01493, allocations: 75.31 kB / 344.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.183e-05/0.01499, allocations: 0.5157 MB / 344.9 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.54e-05/0.01505, allocations: 27.97 kB / 345 MB, free: 4.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.01515, allocations: 171.8 kB / 345.1 MB, free: 4.102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.01534, allocations: 238.8 kB / 345.4 MB, free: 3.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.01535, allocations: 4 kB / 345.4 MB, free: 3.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003374/0.01568, allocations: 263.3 kB / 345.6 MB, free: 3.543 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.0157, allocations: 4 kB / 345.6 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.01571, allocations: 4 kB / 345.6 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001124/0.01582, allocations: 23.67 kB / 345.6 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.01604, allocations: 71.91 kB / 345.7 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005893/0.01663, allocations: 1.725 MB / 347.4 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.01678, allocations: 31.8 kB / 347.5 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.0168, allocations: 8 kB / 347.5 MB, free: 1.555 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.01691, allocations: 184.4 kB / 347.7 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/0.01697, allocations: 35.81 kB / 347.7 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.586e-05/0.01701, allocations: 38.45 kB / 347.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01702, allocations: 3.938 kB / 347.7 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.01702, allocations: 4 kB / 347.7 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.01703, allocations: 8.047 kB / 347.7 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000597/0.01762, allocations: 0.5306 MB / 348.3 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.01763, allocations: 3.938 kB / 348.3 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.01784, allocations: 47.92 kB / 348.3 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.448e-05/0.0179, allocations: 19.67 kB / 348.3 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.01792, allocations: 8 kB / 348.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007607/0.01868, allocations: 1.713 MB / 350.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01868, allocations: 0 / 350.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.01909, allocations: 376.3 kB / 350.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.01918, allocations: 63.66 kB / 350.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.479e-05/0.01922, allocations: 4 kB / 350.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.01937, allocations: 12.06 kB / 350.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.01942, allocations: 19.97 kB / 350.5 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.01944, allocations: 8 kB / 350.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.01961, allocations: 230.9 kB / 350.8 MB, free: 14.08 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01961, allocations: 0 / 350.8 MB, free: 14.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004513/0.02006, allocations: 115.7 kB / 350.9 MB, free: 13.96 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.phi,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001091/0.02017, allocations: 107.2 kB / 351 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.02056, allocations: 310.6 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.02056, allocations: 8.062 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.02076, allocations: 237.4 kB / 351.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.02122, allocations: 62.39 kB / 351.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.02297, allocations: 0.8788 MB / 352.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.729e-05/0.02305, allocations: 104.6 kB / 352.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.02319, allocations: 38.95 kB / 352.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.02339, allocations: 142.1 kB / 352.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of SimCode: time 5.42e-07/0.0234, allocations: 0 / 352.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of Templates: time 0.008345/0.03174, allocations: 3.797 MB / 356.5 MB, free: 8.273 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & (cd run_cvode && ../ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_gbode.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_gbode.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_gbode.sim & (cd run_gbode && ../ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_gbode.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_ida.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_ida.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_ida.sim & (cd run_ida && ../ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1257503861561418]