Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.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.001918/0.001918, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 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.003348/0.003348, allocations: 218.3 kB / 22.25 MB, free: 3.574 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.703/1.703, allocations: 230.6 MB / 256 MB, free: 9.594 MB / 202.7 MB " [Timeout remaining time 178] 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.01005/0.01005, allocations: 1.6 MB / 314 MB, free: 368 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.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking") translateModel(ElectricBraking.Examples.Translational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking") [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.00362/0.00362, allocations: 74.83 kB / 437.1 MB, free: 46.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.09515, allocations: 53.77 MB / 490.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.DCPMBraking): time 0.006898/0.1021, allocations: 4.084 MB / 495 MB, free: 5.934 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.1049, allocations: 1.343 MB / 496.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003412/0.1052, allocations: 11.94 kB / 496.3 MB, free: 4.57 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006994/0.1059, allocations: 210.5 kB / 496.5 MB, free: 4.363 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004332/0.1064, allocations: 210.3 kB / 496.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.1066, allocations: 127.8 kB / 496.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007938/0.1074, allocations: 0.6767 MB / 497.5 MB, free: 3.352 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003737/0.1078, allocations: 189 kB / 497.7 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.1082, allocations: 271 kB / 498 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003807/0.1086, allocations: 238.7 kB / 498.2 MB, free: 2.664 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.973e-05/0.1087, allocations: 60 kB / 498.3 MB, free: 2.605 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.1089, allocations: 79.98 kB / 498.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.109, allocations: 131.5 kB / 498.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002764/0.1093, allocations: 250.9 kB / 498.7 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009573/0.1103, allocations: 0.7121 MB / 499.4 MB, free: 1.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1103, allocations: 7.938 kB / 499.4 MB, free: 1.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1103, allocations: 4 kB / 499.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.577e-06/0.1103, allocations: 0 / 499.5 MB, free: 1.426 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.00145/0.1117, allocations: 0.7856 MB / 0.4885 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.1118, allocations: 8.031 kB / 0.4885 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.112, allocations: 84.44 kB / 0.4886 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000611/0.1126, allocations: 343.4 kB / 0.4889 GB, free: 160 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.1126, allocations: 37.69 kB / 0.489 GB, free: 124 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.1128, allocations: 64.52 kB / 0.489 GB, free: 60 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000973/0.1138, allocations: 0.5385 MB / 0.4896 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.1138, allocations: 11.92 kB / 0.4896 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.1138, allocations: 20 kB / 0.4896 GB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.1139, allocations: 12 kB / 0.4896 GB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006088/0.1145, allocations: 311.8 kB / 0.4899 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.1173, allocations: 1.471 MB / 0.4913 GB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.1178, allocations: 243.2 kB / 0.4916 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.118, allocations: 113.4 kB / 0.4917 GB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.118, allocations: 16.25 kB / 0.4917 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.1181, allocations: 38.84 kB / 0.4917 GB, free: 13.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.014e-06/0.1181, allocations: 0 / 0.4917 GB, free: 13.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002322/0.1204, allocations: 1.089 MB / 0.4928 GB, free: 12.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.1204, allocations: 55.41 kB / 0.4928 GB, free: 11.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/0.1209, allocations: 332.5 kB / 0.4932 GB, free: 11.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1209, allocations: 29.7 kB / 0.4932 GB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.1212, allocations: 284.8 kB / 0.4935 GB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.1213, allocations: 138.8 kB / 0.4936 GB, free: 11.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.1214, allocations: 78.09 kB / 0.4937 GB, free: 11.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.1216, allocations: 350.7 kB / 0.494 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.1218, allocations: 92.83 kB / 0.4941 GB, free: 10.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.1221, allocations: 195.5 kB / 0.4943 GB, free: 10.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005294/0.1226, allocations: 319 kB / 0.4946 GB, free: 10.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1226, allocations: 0 / 0.4946 GB, free: 10.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007224/0.1234, allocations: 417.3 kB / 0.495 GB, free: 9.645 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1234, allocations: 4 kB / 0.495 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1234, allocations: 4 kB / 0.495 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.1236, allocations: 40.84 kB / 0.495 GB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/0.1239, allocations: 88.11 kB / 0.4951 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.1254, allocations: 1.425 MB / 0.4965 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.1256, allocations: 12 kB / 0.4965 GB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.1256, allocations: 12 kB / 0.4965 GB, free: 7.961 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.1259, allocations: 185.7 kB / 0.4967 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.126, allocations: 39.75 kB / 0.4967 GB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.1261, allocations: 44.02 kB / 0.4968 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1261, allocations: 8 kB / 0.4968 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1261, allocations: 0 / 0.4968 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1261, allocations: 7.938 kB / 0.4968 GB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.1277, allocations: 0.7884 MB / 0.4976 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1277, allocations: 0 / 0.4976 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.128, allocations: 63.97 kB / 0.4976 GB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.1282, allocations: 44.8 kB / 0.4977 GB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.1282, allocations: 4 kB / 0.4977 GB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.1295, allocations: 1.37 MB / 0.499 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.1295, allocations: 8.016 kB / 0.499 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008769/0.1304, allocations: 0.5406 MB / 0.4995 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.1305, allocations: 59.8 kB / 0.4996 GB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.1306, allocations: 8.062 kB / 0.4996 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.1308, allocations: 19.98 kB / 0.4996 GB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.1309, allocations: 23.95 kB / 0.4996 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.1309, allocations: 12 kB / 0.4997 GB, free: 4.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002755/0.1312, allocations: 223.1 kB / 0.4999 GB, free: 4.336 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1312, allocations: 4 kB / 0.4999 GB, free: 4.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004393/0.1316, allocations: 104 kB / 0.5 GB, free: 4.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001434/0.1317, allocations: 107.2 kB / 0.5001 GB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007685/0.1325, allocations: 394.1 kB / 0.5005 GB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1325, allocations: 0 / 0.5005 GB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.1329, allocations: 247.4 kB / 0.5007 GB, free: 3.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.1334, allocations: 77.81 kB / 0.5008 GB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.1355, allocations: 1.156 MB / 0.5019 GB, free: 2.195 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.1358, allocations: 250 kB / 0.5021 GB, free: 1.926 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.136, allocations: 35.28 kB / 0.5022 GB, free: 1.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/0.136, allocations: 27.44 kB / 0.5022 GB, free: 1.863 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.136, allocations: 0 / 0.5022 GB, free: 1.863 MB / 362.7 MB Notification: Performance of Templates: time 0.01095/0.147, allocations: 4.75 MB / 0.5068 GB, free: 13.19 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.094478057231754]