Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.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.001369/0.001369, allocations: 81.17 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.001567/0.001567, allocations: 169 kB / 23.27 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 1.024/1.024, allocations: 177.1 MB / 203.7 MB, free: 5.508 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.004989/0.004989, allocations: 1.201 MB / 261.5 MB, free: 11.74 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.Translational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking") translateModel(ElectricBraking.Examples.Translational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 331.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.197e-05/2.357e-05, allocations: 6.25 kB / 331.6 MB, free: 3.059 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.006794/0.006818, allocations: 5.889 MB / 337.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003202/0.01002, allocations: 1.978 MB / 339.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000589/0.01061, allocations: 51.62 kB / 339.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008898/0.0115, allocations: 377.6 kB / 339.9 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001/0.0125, allocations: 492.6 kB / 340.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.01287, allocations: 223.7 kB / 340.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.01447, allocations: 1.924 MB / 342.5 MB, free: 8.086 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.01571, allocations: 0.8607 MB / 343.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.01738, allocations: 1.368 MB / 344.7 MB, free: 5.809 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.01846, allocations: 0.9353 MB / 345.7 MB, free: 4.871 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.01872, allocations: 216 kB / 345.9 MB, free: 4.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003825/0.0191, allocations: 244 kB / 346.1 MB, free: 4.422 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000406/0.01951, allocations: 0.5765 MB / 346.7 MB, free: 3.844 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006539/0.02016, allocations: 0.6938 MB / 347.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001629/0.02179, allocations: 1.62 MB / 349 MB, free: 1.523 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.02179, allocations: 0 / 349 MB, free: 1.523 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.02179, allocations: 0 / 349 MB, free: 1.523 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.352e-05/0.02182, allocations: 0 / 349 MB, free: 1.523 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: 394 * Number of variables: 394 Notification: Performance of Generate backend data structure: time 0.003014/0.02483, allocations: 2.161 MB / 351.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.02487, allocations: 8.031 kB / 351.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005446/0.02541, allocations: 335.7 kB / 351.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.02658, allocations: 0.9289 MB / 352.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-05/0.02667, allocations: 123.4 kB / 352.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.02685, allocations: 152.3 kB / 352.7 MB, free: 13.74 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.02848, allocations: 1.253 MB / 354 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.853e-05/0.02852, allocations: 7.984 kB / 354 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.02863, allocations: 60 kB / 354 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.756e-05/0.0287, allocations: 63.06 kB / 354.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008231/0.02952, allocations: 453.1 kB / 354.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005383/0.03491, allocations: 4.151 MB / 358.7 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006095/0.03552, allocations: 0.5358 MB / 359.2 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.03575, allocations: 220.7 kB / 359.4 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.03579, allocations: 16.66 kB / 359.4 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.03581, allocations: 42.05 kB / 359.5 MB, free: 6.738 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 2.484e-06/0.03582, allocations: 0 / 359.5 MB, free: 6.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=90): time 0.003646/0.03946, allocations: 2.34 MB / 361.8 MB, free: 4.328 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.03949, allocations: 60.41 kB / 361.9 MB, free: 4.258 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/0.04001, allocations: 0.7216 MB / 362.6 MB, free: 3.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.04006, allocations: 45.64 kB / 362.6 MB, free: 3.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003322/0.04039, allocations: 0.7567 MB / 363.4 MB, free: 2.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.04057, allocations: 349.1 kB / 363.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.04076, allocations: 176.2 kB / 363.9 MB, free: 2.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003871/0.04115, allocations: 0.5276 MB / 364.4 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.04131, allocations: 117.9 kB / 364.6 MB, free: 1.527 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.04158, allocations: 356.2 kB / 364.9 MB, free: 1.094 MB / 330.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0006732/0.04225, allocations: 0.7245 MB / 365.6 MB, free: 292 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.04225, allocations: 0 / 365.6 MB, free: 292 kB / 330.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001137/0.04339, allocations: 0.8816 MB / 366.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.0434, allocations: 8 kB / 366.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.04341, allocations: 4 kB / 366.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000759/0.04417, allocations: 346.9 kB / 366.9 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.04449, allocations: 151.8 kB / 367 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004197/0.04869, allocations: 6.628 MB / 373.6 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.04905, allocations: 35.94 kB / 373.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.04909, allocations: 31.92 kB / 373.7 MB, free: 7.832 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: massLoad.s = $START.massLoad.s. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,15,81.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003481/0.04944, allocations: 212.3 kB / 373.9 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.04957, allocations: 127.4 kB / 374 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.05062, allocations: 0.7989 MB / 374.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.05063, allocations: 8 kB / 374.8 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.05063, allocations: 4 kB / 374.8 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.05064, allocations: 3.984 kB / 374.9 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.05314, allocations: 2.124 MB / 377 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.05315, allocations: 4 kB / 377 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/0.05344, allocations: 119.8 kB / 377.1 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006717/0.05411, allocations: 322.6 kB / 377.4 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.05415, allocations: 20.03 kB / 377.4 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00349/0.05764, allocations: 6.338 MB / 383.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.05764, allocations: 3.938 kB / 383.8 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.05892, allocations: 1.108 MB / 384.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.05916, allocations: 175.2 kB / 385.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.05923, allocations: 23.98 kB / 385.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.05948, allocations: 35.98 kB / 385.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.05959, allocations: 68.8 kB / 385.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.05963, allocations: 23.98 kB / 385.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005096/0.06014, allocations: 426.8 kB / 385.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06014, allocations: 4 kB / 385.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007272/0.06086, allocations: 328 kB / 385.9 MB, free: 11.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(4,15,81.2%), (1,2,100.0%), (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 0.0001333/0.061, allocations: 119.2 kB / 386.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.06218, allocations: 1.187 MB / 387.2 MB, free: 9.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.06218, allocations: 0 / 387.2 MB, free: 9.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008057/0.06298, allocations: 0.9263 MB / 388.2 MB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.06367, allocations: 279.2 kB / 388.4 MB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.06679, allocations: 2.676 MB / 391.1 MB, free: 5.746 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.0671, allocations: 440.1 kB / 391.6 MB, free: 5.285 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.06738, allocations: 112.1 kB / 391.7 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.06784, allocations: 330 kB / 392 MB, free: 4.848 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.06784, allocations: 3.938 kB / 392 MB, free: 4.844 MB / 362.7 MB Notification: Performance of Templates: time 0.02345/0.09129, allocations: 19.28 MB / 411.3 MB, free: 1.852 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.sim & (cd run_cvode && ../ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_gbode.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_gbode.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_gbode.sim & (cd run_gbode && ../ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_gbode.pipe 2>&1) [Timeout 240] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_ida.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_ida.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_ida.sim & (cd run_ida && ../ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8212044490501285]