Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.001235/0.001235, allocations: 77.14 kB / 20.67 MB, free: 3.836 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.00165/0.00165, allocations: 165 kB / 24.06 MB, free: 456 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 1.038/1.038, allocations: 177.1 MB / 204.5 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.007825/0.007825, allocations: 1.197 MB / 262.2 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.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 332.4 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.651e-05/1.776e-05, allocations: 6.25 kB / 332.4 MB, free: 3.059 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004813/0.00483, allocations: 5.519 MB / 337.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.007528, allocations: 1.927 MB / 339.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003353/0.007863, allocations: 47.62 kB / 339.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005835/0.008447, allocations: 357.8 kB / 340.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006404/0.009087, allocations: 468.8 kB / 340.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.00936, allocations: 215.6 kB / 340.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.01063, allocations: 1.843 MB / 342.7 MB, free: 8.645 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007611/0.01139, allocations: 0.8365 MB / 343.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.01254, allocations: 1.31 MB / 344.9 MB, free: 6.461 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008211/0.01336, allocations: 0.9237 MB / 345.8 MB, free: 5.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.01352, allocations: 208 kB / 346 MB, free: 5.332 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.01375, allocations: 232 kB / 346.2 MB, free: 5.105 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003083/0.01406, allocations: 0.5648 MB / 346.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004344/0.01449, allocations: 0.6704 MB / 347.5 MB, free: 3.867 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.0157, allocations: 1.569 MB / 349 MB, free: 2.293 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.023e-06/0.0157, allocations: 0 / 349 MB, free: 2.293 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.0157, allocations: 0 / 349 MB, free: 2.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.01571, allocations: 0 / 349 MB, free: 2.293 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.001854/0.01756, allocations: 2.095 MB / 351.1 MB, free: 152 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.454e-05/0.01759, allocations: 8.031 kB / 351.1 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.01797, allocations: 322.6 kB / 351.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.01877, allocations: 0.9056 MB / 352.4 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.01883, allocations: 107.3 kB / 352.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.01897, allocations: 156.3 kB / 352.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.02007, allocations: 1.213 MB / 353.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.0201, allocations: 0 / 353.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.222e-05/0.02018, allocations: 64 kB / 353.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.279e-05/0.02022, allocations: 54.94 kB / 353.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005783/0.0208, allocations: 447.7 kB / 354.4 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.02466, allocations: 4.057 MB / 358.4 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.02522, allocations: 0.5241 MB / 359 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.02543, allocations: 200.7 kB / 359.2 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.02547, allocations: 20.66 kB / 359.2 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.0255, allocations: 42.05 kB / 359.2 MB, free: 7.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 2.454e-06/0.0255, allocations: 4 kB / 359.2 MB, free: 7.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.002913/0.02841, allocations: 1.863 MB / 361.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.236e-05/0.02844, allocations: 60.06 kB / 361.1 MB, free: 5.812 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004851/0.02892, allocations: 0.7099 MB / 361.9 MB, free: 5.086 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.02897, allocations: 41.7 kB / 361.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003536/0.02932, allocations: 0.7448 MB / 362.6 MB, free: 4.285 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.02949, allocations: 297.5 kB / 362.9 MB, free: 3.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005314/0.03002, allocations: 168.2 kB / 363.1 MB, free: 3.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.0302, allocations: 0.6053 MB / 363.7 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.03034, allocations: 101.9 kB / 363.8 MB, free: 3.102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.03057, allocations: 332.9 kB / 364.1 MB, free: 2.699 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.0005953/0.03116, allocations: 0.6691 MB / 364.8 MB, free: 1.953 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.03117, allocations: 4 kB / 364.8 MB, free: 1.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001009/0.03218, allocations: 0.8116 MB / 365.6 MB, free: 1.113 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.03219, allocations: 10.97 kB / 365.6 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.0322, allocations: 4 kB / 365.6 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006817/0.03288, allocations: 337.5 kB / 365.9 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.03316, allocations: 135.8 kB / 366.1 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003845/0.03701, allocations: 6.514 MB / 372.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.03722, allocations: 23.98 kB / 372.6 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.03725, allocations: 28.12 kB / 372.6 MB, free: 9.719 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: smpm.phi = $START.smpm.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (78): * Single equations (assignments): 75 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.03749, allocations: 216.3 kB / 372.9 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.0376, allocations: 115.4 kB / 373 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009248/0.03852, allocations: 0.7391 MB / 373.7 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.03853, allocations: 7.922 kB / 373.7 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.03853, allocations: 3.938 kB / 373.7 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.03872, allocations: 151.4 kB / 373.9 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-05/0.03879, allocations: 19.98 kB / 373.9 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.03901, allocations: 35.98 kB / 373.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.0391, allocations: 76.48 kB / 374 MB, free: 8.332 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001135/0.04023, allocations: 0.7848 MB / 374.8 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007583/0.04099, allocations: 0.9263 MB / 375.7 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001795/0.04117, allocations: 178.1 kB / 375.9 MB, free: 6.406 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002563/0.04143, allocations: 418.8 kB / 376.3 MB, free: 6 MB / 346.7 MB Notification: Performance of Backend: time 2.1e-07/0.04143, allocations: 0 / 376.3 MB, free: 6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.043, allocations: 1.123 MB / 377.4 MB, free: 4.809 MB / 346.7 MB Notification: Performance of SimCode: time 0.003432/0.04643, allocations: 3.638 MB / 381.1 MB, free: 1.094 MB / 346.7 MB Notification: Performance of Templates: time 0.02082/0.06725, allocations: 19.45 MB / 400.5 MB, free: 13.95 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.8997699948959053]