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.001329/0.001329, allocations: 100.3 kB / 19.7 MB, free: 444 kB / 13.93 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.001457/0.001457, allocations: 209.1 kB / 22.99 MB, free: 2.988 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 1.042/1.042, allocations: 230.6 MB / 256.8 MB, free: 9.602 MB / 202.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.007662/0.007662, allocations: 1.594 MB / 314.8 MB, free: 384 kB / 234.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: ElectricBraking requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 74.86 kB / 437.1 MB, free: 46.54 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.08589, allocations: 53.78 MB / 490.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.004921/0.09081, allocations: 5.446 MB / 496.3 MB, free: 5.336 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00278/0.09359, allocations: 1.9 MB / 498.2 MB, free: 3.43 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006447/0.09424, allocations: 51.62 kB / 498.3 MB, free: 3.379 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000838/0.09508, allocations: 373.3 kB / 498.6 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009075/0.09598, allocations: 465.2 kB / 499.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.09634, allocations: 219.7 kB / 499.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.09768, allocations: 1.871 MB / 0.4894 GB, free: 472 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007813/0.09846, allocations: 0.8568 MB / 0.4903 GB, free: 15.55 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007348/0.0992, allocations: 0.8645 MB / 0.4911 GB, free: 14.68 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.1003, allocations: 1 MB / 0.4921 GB, free: 13.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002186/0.1005, allocations: 220 kB / 0.4923 GB, free: 13.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003242/0.1008, allocations: 248 kB / 0.4925 GB, free: 13.22 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003293/0.1011, allocations: 0.5687 MB / 0.4931 GB, free: 12.65 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005788/0.1017, allocations: 0.8091 MB / 0.4939 GB, free: 11.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001778/0.1035, allocations: 2.752 MB / 0.4966 GB, free: 9.078 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1035, allocations: 0 / 0.4966 GB, free: 9.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1035, allocations: 0 / 0.4966 GB, free: 9.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.516e-05/0.1036, allocations: 0 / 0.4966 GB, free: 9.078 MB / 362.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.002649/0.1062, allocations: 2.08 MB / 0.4986 GB, free: 6.957 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1062, allocations: 12.03 kB / 0.4986 GB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005071/0.1068, allocations: 207.8 kB / 0.4988 GB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.108, allocations: 1.055 MB / 0.4998 GB, free: 5.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.1081, allocations: 119.4 kB / 0.4999 GB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1082, allocations: 155.9 kB / 0.5001 GB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.1105, allocations: 2.215 MB / 0.5023 GB, free: 3.094 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.1105, allocations: 3.984 kB / 0.5023 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1106, allocations: 67.98 kB / 0.5023 GB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/0.1107, allocations: 63.06 kB / 0.5024 GB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.1126, allocations: 1.683 MB / 0.504 GB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005464/0.118, allocations: 4.755 MB / 0.5087 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1192, allocations: 1.063 MB / 0.5097 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005928/0.1198, allocations: 0.5781 MB / 0.5103 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.1199, allocations: 12.94 kB / 0.5103 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.1199, allocations: 55.55 kB / 0.5103 GB, free: 10.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.866e-06/0.1199, allocations: 0 / 0.5103 GB, free: 10.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=96): time 0.007528/0.1274, allocations: 5.155 MB / 0.5154 GB, free: 5.488 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.1275, allocations: 64.41 kB / 0.5154 GB, free: 5.414 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007629/0.1282, allocations: 0.7974 MB / 0.5162 GB, free: 4.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.1283, allocations: 41.7 kB / 0.5163 GB, free: 4.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.1286, allocations: 0.6839 MB / 0.5169 GB, free: 3.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1288, allocations: 345 kB / 0.5173 GB, free: 3.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.129, allocations: 174.6 kB / 0.5174 GB, free: 3.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.037e-05/0.129, allocations: 341.9 kB / 0.5177 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.1295, allocations: 0.4938 MB / 0.5182 GB, free: 2.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005637/0.1301, allocations: 0.6563 MB / 0.5189 GB, free: 1.805 MB / 378.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.003763/0.1339, allocations: 2.552 MB / 0.5214 GB, free: 15.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1339, allocations: 0 / 0.5214 GB, free: 15.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002054/0.1359, allocations: 1.834 MB / 0.5232 GB, free: 13.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1359, allocations: 12.03 kB / 0.5232 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.136, allocations: 4 kB / 0.5232 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.137, allocations: 0.6268 MB / 0.5238 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.1373, allocations: 163.7 kB / 0.5239 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00614/0.1435, allocations: 7.946 MB / 0.5317 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.144, allocations: 43.95 kB / 0.5317 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.1441, allocations: 32 kB / 0.5318 GB, free: 4.203 MB / 394.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: 18 * 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 (90): * Single equations (assignments): 87 * 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 {(5,14,76.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007112/0.1448, allocations: 0.5443 MB / 0.5323 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.1449, allocations: 103.3 kB / 0.5324 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.1469, allocations: 1.759 MB / 0.5341 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.147, allocations: 8 kB / 0.5341 GB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.147, allocations: 7.938 kB / 0.5341 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.147, allocations: 7.984 kB / 0.5341 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.1508, allocations: 3.207 MB / 0.5373 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1509, allocations: 4 kB / 0.5373 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.1512, allocations: 127.9 kB / 0.5374 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009928/0.1522, allocations: 0.5706 MB / 0.538 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.993e-05/0.1522, allocations: 31.92 kB / 0.538 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0052/0.1574, allocations: 7.051 MB / 0.5449 GB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1574, allocations: 0 / 0.5449 GB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00279/0.1602, allocations: 2.489 MB / 0.5473 GB, free: 3.855 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004381/0.1607, allocations: 207.4 kB / 0.5475 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.757e-05/0.1608, allocations: 24 kB / 0.5475 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.1611, allocations: 47.95 kB / 0.5476 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.1613, allocations: 81.03 kB / 0.5476 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.1614, allocations: 31.98 kB / 0.5477 GB, free: 3.473 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005642/0.1619, allocations: 0.5536 MB / 0.5482 GB, free: 2.926 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1619, allocations: 4 kB / 0.5482 GB, free: 2.922 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009032/0.1629, allocations: 352 kB / 0.5486 GB, free: 2.578 MB / 410.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 (75): * Single equations (assignments): 72 * 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 {(5,14,76.0%), (2,1,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.0001483/0.163, allocations: 126.1 kB / 0.5487 GB, free: 2.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.1651, allocations: 1.797 MB / 0.5504 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1651, allocations: 0 / 0.5504 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2023/0.3674, allocations: 1.173 MB / 0.5516 GB, free: 66.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.3685, allocations: 267.9 kB / 0.5518 GB, free: 66.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.3728, allocations: 3.357 MB / 0.5551 GB, free: 65.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/0.3738, allocations: 0.9136 MB / 0.556 GB, free: 65.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.3741, allocations: 68.66 kB / 0.5561 GB, free: 65.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/0.3741, allocations: 0 / 0.5561 GB, free: 65.49 MB / 410.7 MB Notification: Performance of Templates: time 0.03364/0.4077, allocations: 41.84 MB / 0.5969 GB, free: 33.79 MB / 410.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: 6.964559921994805]