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.0008999/0.0008999, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009239/0.0009239, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.8955/0.8955, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.006701/0.006701, allocations: 1.192 MB / 262.2 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.253e-06/1.253e-06, allocations: 0 / 331.5 MB, free: 18.83 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.868e-05, allocations: 2.312 kB / 331.5 MB, free: 18.82 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.004135/0.004153, allocations: 5.896 MB / 337.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.005801, allocations: 1.978 MB / 339.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002534/0.006054, allocations: 47.62 kB / 339.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005643/0.006618, allocations: 377.3 kB / 339.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.007165, allocations: 488.6 kB / 340.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.007381, allocations: 231.6 kB / 340.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.008158, allocations: 1.925 MB / 342.5 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005603/0.008719, allocations: 0.8646 MB / 343.3 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007792/0.009498, allocations: 1.357 MB / 344.7 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005604/0.01006, allocations: 0.9431 MB / 345.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.0102, allocations: 216 kB / 345.8 MB, free: 4.422 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000229/0.01043, allocations: 240 kB / 346.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.01065, allocations: 0.5842 MB / 346.7 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003343/0.01098, allocations: 0.6978 MB / 347.4 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008501/0.01183, allocations: 1.62 MB / 349 MB, free: 1.277 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.01183, allocations: 3.938 kB / 349 MB, free: 1.273 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01184, allocations: 0 / 349 MB, free: 1.273 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.01185, allocations: 0 / 349 MB, free: 1.273 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: 394 * Number of variables: 394 Notification: Performance of Generate backend data structure: time 0.002313/0.01416, allocations: 2.15 MB / 351.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.01419, allocations: 12.03 kB / 351.1 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005145/0.01471, allocations: 327.8 kB / 351.5 MB, free: 14.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.01584, allocations: 0.9366 MB / 352.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.138e-05/0.01592, allocations: 111.4 kB / 352.5 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.01611, allocations: 152.3 kB / 352.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.01766, allocations: 1.254 MB / 353.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.0177, allocations: 3.938 kB / 353.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.01781, allocations: 67.98 kB / 354 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-05/0.01788, allocations: 67.05 kB / 354 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008011/0.01868, allocations: 441.2 kB / 354.5 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.02365, allocations: 4.155 MB / 358.6 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007613/0.02441, allocations: 0.535 MB / 359.2 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.02472, allocations: 208.7 kB / 359.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.02476, allocations: 16.64 kB / 359.4 MB, free: 6.582 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.02479, allocations: 42.05 kB / 359.4 MB, free: 6.527 MB / 282.7 MB Notification: Performance of pre-optimization done (n=80): time 3.075e-06/0.02479, allocations: 0 / 359.4 MB, free: 6.527 MB / 282.7 MB Notification: Performance of matching and sorting (n=90): time 0.004387/0.02918, allocations: 2.348 MB / 361.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.02921, allocations: 64.41 kB / 361.8 MB, free: 4.035 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.02985, allocations: 0.7216 MB / 362.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.0299, allocations: 41.7 kB / 362.6 MB, free: 3.246 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.03033, allocations: 0.7722 MB / 363.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.03055, allocations: 337.1 kB / 363.7 MB, free: 2.133 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.03078, allocations: 180.2 kB / 363.9 MB, free: 1.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.03095, allocations: 0.5237 MB / 364.4 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.03116, allocations: 113.9 kB / 364.5 MB, free: 1.305 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.03151, allocations: 360.2 kB / 364.9 MB, free: 0.8672 MB / 282.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.0008739/0.03239, allocations: 0.7245 MB / 365.6 MB, free: 56 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.03239, allocations: 4 kB / 365.6 MB, free: 52 kB / 282.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001462/0.03385, allocations: 0.8776 MB / 366.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.03387, allocations: 8 kB / 366.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.03388, allocations: 4 kB / 366.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009313/0.03481, allocations: 353.9 kB / 366.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.03524, allocations: 159.7 kB / 367 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0048/0.04004, allocations: 6.622 MB / 373.6 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.04035, allocations: 27.92 kB / 373.6 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.0404, allocations: 28 kB / 373.7 MB, free: 7.613 MB / 298.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.0003107/0.04071, allocations: 216.4 kB / 373.9 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.04088, allocations: 131.4 kB / 374 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.04221, allocations: 0.7872 MB / 374.8 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.04222, allocations: 12 kB / 374.8 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.04223, allocations: 4 kB / 374.8 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.04224, allocations: 3.984 kB / 374.8 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.04533, allocations: 2.128 MB / 376.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.04533, allocations: 0 / 376.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.04572, allocations: 119.9 kB / 377 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008435/0.04656, allocations: 329.3 kB / 377.4 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.04661, allocations: 23.98 kB / 377.4 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.05056, allocations: 6.326 MB / 383.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.05056, allocations: 7.938 kB / 383.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.05214, allocations: 1.108 MB / 384.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.05242, allocations: 167.2 kB / 385 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.128e-05/0.05251, allocations: 20 kB / 385 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.05284, allocations: 35.98 kB / 385.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.05297, allocations: 76.8 kB / 385.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.05302, allocations: 19.98 kB / 385.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003522/0.05337, allocations: 426.8 kB / 385.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05337, allocations: 0 / 385.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008527/0.05422, allocations: 328 kB / 385.9 MB, free: 10.88 MB / 314.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.000153/0.05437, allocations: 139 kB / 386 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.05602, allocations: 1.176 MB / 387.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.05602, allocations: 0 / 387.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.05705, allocations: 0.934 MB / 388.1 MB, free: 8.516 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000894/0.05794, allocations: 271.1 kB / 388.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.06156, allocations: 2.692 MB / 391.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008421/0.0624, allocations: 0.8401 MB / 391.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006199/0.06302, allocations: 334 kB / 392.3 MB, free: 4.285 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.06303, allocations: 0 / 392.3 MB, free: 4.285 MB / 314.7 MB Notification: Performance of Templates: time 0.1176/0.1806, allocations: 41.15 MB / 433.4 MB, free: 68.15 MB / 330.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 & ./ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.621185966767371]