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.001011/0.001011, 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.001021/0.001021, allocations: 169 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 0.957/0.957, 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.005158/0.005158, allocations: 1.191 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.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.273e-06/1.273e-06, allocations: 0 / 331.5 MB, free: 3.875 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.615e-05, allocations: 6.25 kB / 331.6 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.00452/0.004536, allocations: 5.515 MB / 337.1 MB, free: 14.31 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.006653, allocations: 1.916 MB / 339 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.006961, allocations: 51.62 kB / 339 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000634/0.007595, allocations: 365.7 kB / 339.4 MB, free: 11.98 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006509/0.008245, allocations: 472.8 kB / 339.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.008499, allocations: 211.6 kB / 340.1 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.009619, allocations: 1.847 MB / 341.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007009/0.01032, allocations: 0.8287 MB / 342.7 MB, free: 8.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.01138, allocations: 1.314 MB / 344.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000746/0.01213, allocations: 0.9158 MB / 345 MB, free: 6.355 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.01233, allocations: 208 kB / 345.2 MB, free: 6.152 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.0126, allocations: 235.9 kB / 345.4 MB, free: 5.922 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003169/0.01292, allocations: 0.5726 MB / 346 MB, free: 5.348 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004596/0.01338, allocations: 0.6665 MB / 346.6 MB, free: 4.68 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.01445, allocations: 1.573 MB / 348.2 MB, free: 3.102 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.01445, allocations: 0 / 348.2 MB, free: 3.102 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01446, allocations: 0 / 348.2 MB, free: 3.102 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.01447, allocations: 0 / 348.2 MB, free: 3.102 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.001942/0.01641, allocations: 2.091 MB / 350.3 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.738e-05/0.01644, allocations: 8.031 kB / 350.3 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004023/0.01684, allocations: 323.8 kB / 350.6 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008576/0.0177, allocations: 0.9057 MB / 351.5 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.846e-05/0.01776, allocations: 107.3 kB / 351.6 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.0179, allocations: 152.3 kB / 351.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.01905, allocations: 1.228 MB / 353 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.01908, allocations: 0 / 353 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.973e-05/0.01916, allocations: 60 kB / 353.1 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.971e-05/0.01921, allocations: 58.94 kB / 353.1 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005891/0.0198, allocations: 435.8 kB / 353.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.02348, allocations: 4.053 MB / 357.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005813/0.02406, allocations: 0.5305 MB / 358.1 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.02428, allocations: 204.7 kB / 358.3 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.02432, allocations: 12.66 kB / 358.4 MB, free: 8.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.02434, allocations: 42.05 kB / 358.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 1.844e-06/0.02434, allocations: 0 / 358.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.002845/0.02719, allocations: 1.882 MB / 360.3 MB, free: 6.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.02722, allocations: 64 kB / 360.3 MB, free: 6.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.02769, allocations: 0.6982 MB / 361 MB, free: 5.895 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.02773, allocations: 41.7 kB / 361.1 MB, free: 5.848 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.02805, allocations: 0.7409 MB / 361.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.02821, allocations: 301.5 kB / 362.1 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.02837, allocations: 164.2 kB / 362.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.02856, allocations: 0.6014 MB / 362.9 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.0287, allocations: 105.9 kB / 363 MB, free: 3.914 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.02894, allocations: 340.9 kB / 363.3 MB, free: 3.504 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.0006075/0.02955, allocations: 0.6613 MB / 364 MB, free: 2.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.02955, allocations: 4 kB / 364 MB, free: 2.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001022/0.03058, allocations: 0.8113 MB / 364.8 MB, free: 1.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.03059, allocations: 4 kB / 364.8 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.0306, allocations: 8 kB / 364.8 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006582/0.03125, allocations: 325.9 kB / 365.1 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.03154, allocations: 139.8 kB / 365.3 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.03521, allocations: 6.519 MB / 371.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.03543, allocations: 23.98 kB / 371.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.172e-05/0.03547, allocations: 24 kB / 371.8 MB, free: 10.54 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.0002314/0.0357, allocations: 204.6 kB / 372 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.03581, allocations: 123.4 kB / 372.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009371/0.03675, allocations: 0.7352 MB / 372.9 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.03675, allocations: 12 kB / 372.9 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.03676, allocations: 4 kB / 372.9 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.03676, allocations: 3.984 kB / 372.9 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.03898, allocations: 1.983 MB / 374.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.03898, allocations: 0 / 374.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.03924, allocations: 107.8 kB / 375 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005978/0.03984, allocations: 310.5 kB / 375.3 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.03988, allocations: 20 kB / 375.3 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.04286, allocations: 6.253 MB / 381.6 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.04286, allocations: 3.938 kB / 381.6 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.04398, allocations: 1.031 MB / 382.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.04417, allocations: 167.2 kB / 382.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.134e-05/0.04425, allocations: 16 kB / 382.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.04458, allocations: 31.98 kB / 382.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.04468, allocations: 68.41 kB / 382.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.04471, allocations: 23.98 kB / 382.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.04496, allocations: 414.8 kB / 383.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04496, allocations: 0 / 383.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005756/0.04553, allocations: 312 kB / 383.6 MB, free: 14.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.phi,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 (61): * Single equations (assignments): 58 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001158/0.04565, allocations: 119.2 kB / 383.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.04669, allocations: 1.116 MB / 384.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.04669, allocations: 0 / 384.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007362/0.04743, allocations: 0.8999 MB / 385.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.04805, allocations: 277.8 kB / 386 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.05073, allocations: 2.553 MB / 388.6 MB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.05127, allocations: 0.8067 MB / 389.4 MB, free: 8.281 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004643/0.05174, allocations: 326 kB / 389.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.05174, allocations: 0 / 389.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of Templates: time 0.03029/0.08203, allocations: 39.62 MB / 429.3 MB, free: 384 kB / 394.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 > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.70352764474228]