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.0008839/0.0008839, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.0008927/0.0008927, allocations: 181 kB / 23.36 MB, free: 1.133 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.9538/0.9538, allocations: 177.2 MB / 203.8 MB, free: 5.477 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.004786/0.004786, allocations: 1.201 MB / 261.5 MB, free: 11.77 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.533e-06/1.533e-06, allocations: 0 / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.396e-05, allocations: 2.312 kB / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.007102/0.007126, allocations: 5.905 MB / 284.2 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003854/0.01098, allocations: 2.04 MB / 286.3 MB, free: 2.922 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006153/0.0116, allocations: 51.69 kB / 286.3 MB, free: 2.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009823/0.01258, allocations: 381.2 kB / 286.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.01374, allocations: 0.4889 MB / 287.2 MB, free: 2.004 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.01423, allocations: 219.7 kB / 287.4 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1096/0.1239, allocations: 1.923 MB / 289.3 MB, free: 19.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.1251, allocations: 0.892 MB / 290.2 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.1269, allocations: 1.351 MB / 291.6 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.1284, allocations: 0.9341 MB / 292.5 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000614/0.129, allocations: 215.5 kB / 292.7 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005121/0.1295, allocations: 243.1 kB / 292.9 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004828/0.13, allocations: 0.5833 MB / 293.5 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.1312, allocations: 0.6896 MB / 294.2 MB, free: 19.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001794/0.133, allocations: 1.619 MB / 295.8 MB, free: 19.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.133, allocations: 2.719 kB / 295.8 MB, free: 19.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.133, allocations: 0 / 295.8 MB, free: 19.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.727e-05/0.133, allocations: 1.188 kB / 295.8 MB, free: 19.18 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.0029/0.1359, allocations: 1.928 MB / 297.8 MB, free: 18.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.136, allocations: 9.281 kB / 297.8 MB, free: 18.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.1365, allocations: 266.3 kB / 298 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1376, allocations: 0.7104 MB / 298.7 MB, free: 17.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.43e-05/0.1377, allocations: 112.4 kB / 298.9 MB, free: 17.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.1378, allocations: 153.9 kB / 299 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1392, allocations: 1.274 MB / 300.3 MB, free: 17.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.1393, allocations: 2.781 kB / 300.3 MB, free: 17.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.429e-05/0.1394, allocations: 66.25 kB / 300.3 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.168e-05/0.1394, allocations: 68.98 kB / 300.4 MB, free: 17.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007844/0.1402, allocations: 465.3 kB / 300.9 MB, free: 16.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003698/0.1439, allocations: 3.255 MB / 304.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.1444, allocations: 0.4983 MB / 304.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.1446, allocations: 177 kB / 304.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.1447, allocations: 13.53 kB / 304.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.1447, allocations: 55.98 kB / 304.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 2.435e-06/0.1447, allocations: 3.625 kB / 304.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=90): time 0.003471/0.1482, allocations: 2.269 MB / 307.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.1482, allocations: 67.31 kB / 307.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.1485, allocations: 0.5897 MB / 307.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.1486, allocations: 41.7 kB / 307.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.1487, allocations: 0.591 MB / 308.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1488, allocations: 322 kB / 308.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.1489, allocations: 160.8 kB / 308.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.511e-05/0.149, allocations: 345.8 kB / 309.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.1491, allocations: 112.8 kB / 309.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.1493, allocations: 274.6 kB / 309.6 MB, free: 11.7 MB / 266.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.00054/0.1498, allocations: 0.6559 MB / 310.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1498, allocations: 4 kB / 310.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.0008191/0.1506, allocations: 0.7133 MB / 311 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1507, allocations: 8 kB / 311 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1507, allocations: 7.938 kB / 311 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006511/0.1513, allocations: 344.7 kB / 311.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.1516, allocations: 155.1 kB / 311.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.1541, allocations: 4.899 MB / 316.4 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.1544, allocations: 29.78 kB / 316.4 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.1544, allocations: 28.36 kB / 316.4 MB, free: 4.691 MB / 266.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.0003489/0.1548, allocations: 173.6 kB / 316.6 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.589e-05/0.1549, allocations: 87.91 kB / 316.7 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007755/0.1557, allocations: 0.6874 MB / 317.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1557, allocations: 12 kB / 317.4 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1557, allocations: 7.938 kB / 317.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1557, allocations: 4.828 kB / 317.4 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.1576, allocations: 1.736 MB / 319.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1576, allocations: 0 / 319.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.1579, allocations: 118.8 kB / 319.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006343/0.1585, allocations: 345.8 kB / 319.6 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.1586, allocations: 23.92 kB / 319.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002678/0.1612, allocations: 4.623 MB / 324.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1612, allocations: 4 kB / 324.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1623, allocations: 0.922 MB / 325.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.1626, allocations: 133.5 kB / 325.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.231e-05/0.1626, allocations: 20 kB / 325.3 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.1629, allocations: 39.97 kB / 325.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.163, allocations: 72.27 kB / 325.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.147e-05/0.163, allocations: 24 kB / 325.5 MB, free: 11.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.1632, allocations: 280.1 kB / 325.7 MB, free: 11.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1632, allocations: 3.938 kB / 325.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008058/0.164, allocations: 332 kB / 326.1 MB, free: 11.09 MB / 282.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.0001371/0.1642, allocations: 100.4 kB / 326.2 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.1654, allocations: 0.9626 MB / 327.1 MB, free: 10.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.1654, allocations: 8.75 kB / 327.1 MB, free: 10.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007119/0.1661, allocations: 0.7353 MB / 327.9 MB, free: 9.273 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.1667, allocations: 277.7 kB / 328.1 MB, free: 9.016 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.1699, allocations: 2.608 MB / 330.7 MB, free: 6.402 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.1702, allocations: 380.2 kB / 331.1 MB, free: 5.996 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002717/0.1705, allocations: 108.1 kB / 331.2 MB, free: 5.887 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004191/0.1709, allocations: 289.1 kB / 331.5 MB, free: 5.605 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1709, allocations: 7.938 kB / 331.5 MB, free: 5.598 MB / 282.7 MB Notification: Performance of Templates: time 0.02352/0.1944, allocations: 19.2 MB / 350.7 MB, free: 2.773 MB / 298.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1573747699148953]