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.001194/0.001194, allocations: 92.22 kB / 19.65 MB, free: 276 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.0021/0.0021, allocations: 173 kB / 23.02 MB, free: 1.547 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.994/0.994, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.00481/0.00481, allocations: 1.195 MB / 261.1 MB, free: 11.89 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.232e-06/1.232e-06, allocations: 0 / 331.1 MB, free: 18.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.419e-05, allocations: 8.562 kB / 331.1 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.004782/0.004806, allocations: 5.998 MB / 337.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.007852, allocations: 1.993 MB / 339.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007079/0.00856, allocations: 43.69 kB / 339.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009548/0.009515, allocations: 373.3 kB / 339.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.01059, allocations: 484.7 kB / 340 MB, free: 9.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.01109, allocations: 227.6 kB / 340.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.01235, allocations: 1.933 MB / 342.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007243/0.01307, allocations: 0.8685 MB / 343 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.01456, allocations: 1.361 MB / 344.4 MB, free: 4.906 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.01564, allocations: 0.9392 MB / 345.3 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004239/0.01607, allocations: 212 kB / 345.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004692/0.01654, allocations: 240 kB / 345.8 MB, free: 3.523 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003465/0.01688, allocations: 0.5804 MB / 346.4 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008539/0.01774, allocations: 0.6938 MB / 347.1 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.01923, allocations: 1.616 MB / 348.7 MB, free: 0.625 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.01924, allocations: 0 / 348.7 MB, free: 0.625 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.01924, allocations: 0 / 348.7 MB, free: 0.625 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.134e-05/0.01928, allocations: 0 / 348.7 MB, free: 0.625 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.002866/0.02215, allocations: 2.206 MB / 350.9 MB, free: 14.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.02219, allocations: 12.03 kB / 350.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005339/0.02273, allocations: 339.7 kB / 351.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.02379, allocations: 0.9797 MB / 352.2 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.119e-05/0.02386, allocations: 119.4 kB / 352.3 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.02402, allocations: 152.4 kB / 352.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.02571, allocations: 1.35 MB / 353.8 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.02575, allocations: 3.953 kB / 353.8 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.0261, allocations: 64 kB / 353.9 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.037e-05/0.02616, allocations: 59.06 kB / 353.9 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.02722, allocations: 0.5603 MB / 354.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004936/0.03215, allocations: 4.496 MB / 359 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008034/0.03296, allocations: 0.5951 MB / 359.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.0333, allocations: 240.8 kB / 359.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.03335, allocations: 12.66 kB / 359.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.03338, allocations: 54.08 kB / 359.9 MB, free: 5.105 MB / 282.7 MB Notification: Performance of pre-optimization done (n=80): time 3.155e-06/0.03339, allocations: 0 / 359.9 MB, free: 5.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=90): time 0.004877/0.03826, allocations: 2.854 MB / 362.7 MB, free: 2.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.0383, allocations: 64.41 kB / 362.8 MB, free: 2.105 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006779/0.03897, allocations: 0.7337 MB / 363.5 MB, free: 1.352 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.513e-05/0.03904, allocations: 41.7 kB / 363.6 MB, free: 1.305 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005026/0.03954, allocations: 0.7568 MB / 364.3 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.03973, allocations: 333.2 kB / 364.7 MB, free: 216 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.03992, allocations: 180.3 kB / 364.8 MB, free: 28 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.04006, allocations: 0.5199 MB / 365.4 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.0403, allocations: 153.9 kB / 365.5 MB, free: 15.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/0.04063, allocations: 396.2 kB / 365.9 MB, free: 14.88 MB / 298.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.0008971/0.04153, allocations: 0.8183 MB / 366.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.04153, allocations: 0 / 366.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001383/0.04292, allocations: 0.9833 MB / 367.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.04294, allocations: 8 kB / 367.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.04295, allocations: 4 kB / 367.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.04407, allocations: 400.3 kB / 368.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.0444, allocations: 151.8 kB / 368.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.04881, allocations: 6.903 MB / 375.1 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/0.04918, allocations: 35.97 kB / 375.2 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.04922, allocations: 36.06 kB / 375.2 MB, free: 5.066 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.0006279/0.04985, allocations: 208.4 kB / 375.4 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.04998, allocations: 127.4 kB / 375.5 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.0512, allocations: 0.9043 MB / 376.5 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.05121, allocations: 11.94 kB / 376.5 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.05121, allocations: 4 kB / 376.5 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.05122, allocations: 7.922 kB / 376.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.05402, allocations: 2.226 MB / 378.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.05402, allocations: 0 / 378.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.05432, allocations: 127.8 kB / 378.8 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007404/0.05506, allocations: 345.3 kB / 379.2 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-05/0.05511, allocations: 28.05 kB / 379.2 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003869/0.05898, allocations: 6.485 MB / 385.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.05898, allocations: 0 / 385.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.06047, allocations: 1.222 MB / 386.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.06075, allocations: 183.3 kB / 387.1 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.661e-05/0.06082, allocations: 20 kB / 387.1 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.06107, allocations: 40.03 kB / 387.1 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.06122, allocations: 80.84 kB / 387.2 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.06125, allocations: 27.98 kB / 387.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003827/0.06163, allocations: 458.9 kB / 387.7 MB, free: 8.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06163, allocations: 4 kB / 387.7 MB, free: 8.066 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007605/0.0624, allocations: 332 kB / 388 MB, free: 7.742 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.0001438/0.06254, allocations: 130.5 kB / 388.1 MB, free: 7.609 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.06395, allocations: 1.269 MB / 389.4 MB, free: 6.281 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.06395, allocations: 4.062 kB / 389.4 MB, free: 6.277 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.06505, allocations: 0.9614 MB / 390.4 MB, free: 5.262 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006804/0.06573, allocations: 282.9 kB / 390.7 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.06924, allocations: 2.704 MB / 393.4 MB, free: 2.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.06959, allocations: 448.1 kB / 393.8 MB, free: 1.762 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003628/0.06996, allocations: 172 kB / 394 MB, free: 1.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.0701, allocations: 60.5 kB / 394 MB, free: 1.531 MB / 314.7 MB Notification: Performance of SimCode: time 1.252e-06/0.0701, allocations: 0 / 394 MB, free: 1.531 MB / 314.7 MB Notification: Performance of Templates: time 0.1344/0.2045, allocations: 18.99 MB / 413 MB, free: 81.7 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5524675771594048]