Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.0009008/0.0009008, allocations: 104.3 kB / 19.71 MB, free: 436 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.00151/0.00151, allocations: 217.2 kB / 23 MB, free: 2.961 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 0.9967/0.9967, allocations: 230.6 MB / 256.8 MB, free: 9.609 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.005082/0.005082, allocations: 1.595 MB / 314.8 MB, free: 364 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.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") translateModel(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.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.004786/0.004786, allocations: 74.94 kB / 437.1 MB, free: 46.54 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.1024, allocations: 53.76 MB / 490.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003517/0.1059, allocations: 3.755 MB / 494.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1072, allocations: 1.273 MB / 495.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.1073, allocations: 11.94 kB / 495.9 MB, free: 5.742 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004578/0.1078, allocations: 194.6 kB / 496.1 MB, free: 5.551 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.108, allocations: 190.5 kB / 496.3 MB, free: 5.363 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001205/0.1081, allocations: 111.8 kB / 496.4 MB, free: 5.254 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004128/0.1085, allocations: 0.6027 MB / 497 MB, free: 4.648 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.1087, allocations: 156.1 kB / 497.1 MB, free: 4.492 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.109, allocations: 251 kB / 497.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1092, allocations: 218.9 kB / 497.6 MB, free: 4.031 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.1092, allocations: 52 kB / 497.6 MB, free: 3.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1093, allocations: 67.98 kB / 497.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/0.1094, allocations: 115.5 kB / 497.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.1095, allocations: 226.9 kB / 498 MB, free: 3.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.11, allocations: 0.6303 MB / 498.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.11, allocations: 4 kB / 498.7 MB, free: 2.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.11, allocations: 4 kB / 498.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.11, allocations: 0 / 498.7 MB, free: 2.938 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0007294/0.1108, allocations: 0.7192 MB / 499.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1108, allocations: 15.97 kB / 499.4 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1109, allocations: 72.59 kB / 499.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.1113, allocations: 322 kB / 499.8 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.1113, allocations: 33.38 kB / 499.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.821e-05/0.1114, allocations: 60.39 kB / 499.9 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.1118, allocations: 491.4 kB / 0.4887 GB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.1119, allocations: 4 kB / 0.4887 GB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.1119, allocations: 16 kB / 0.4887 GB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.1119, allocations: 16 kB / 0.4887 GB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.1122, allocations: 275.8 kB / 0.4889 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1135, allocations: 1.365 MB / 0.4903 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.114, allocations: 208.2 kB / 0.4905 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.1141, allocations: 97.3 kB / 0.4906 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.1141, allocations: 240 / 0.4906 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1142, allocations: 46.72 kB / 0.4906 GB, free: 15.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 9.21e-07/0.1142, allocations: 0 / 0.4906 GB, free: 15.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008833/0.115, allocations: 0.6871 MB / 0.4913 GB, free: 14.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.1151, allocations: 55.41 kB / 0.4913 GB, free: 14.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.1153, allocations: 316.5 kB / 0.4916 GB, free: 13.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.1153, allocations: 29.7 kB / 0.4917 GB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1154, allocations: 260.3 kB / 0.4919 GB, free: 13.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.71e-05/0.1155, allocations: 107 kB / 0.492 GB, free: 13.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.07e-05/0.1155, allocations: 69.64 kB / 0.4921 GB, free: 13.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.1156, allocations: 342.8 kB / 0.4924 GB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.1157, allocations: 75.97 kB / 0.4925 GB, free: 13.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.1158, allocations: 191 kB / 0.4927 GB, free: 12.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1161, allocations: 271.5 kB / 0.4929 GB, free: 12.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1161, allocations: 0 / 0.4929 GB, free: 12.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003297/0.1164, allocations: 334 kB / 0.4932 GB, free: 12.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1164, allocations: 8.375 kB / 0.4933 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.1164, allocations: 8 kB / 0.4933 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.746e-05/0.1165, allocations: 16.86 kB / 0.4933 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1167, allocations: 79.83 kB / 0.4934 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006165/0.1173, allocations: 1.244 MB / 0.4946 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.824e-05/0.1174, allocations: 20.02 kB / 0.4946 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1174, allocations: 8.156 kB / 0.4946 GB, free: 10.71 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 (42): * Single equations (assignments): 41 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.1175, allocations: 169.8 kB / 0.4948 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-05/0.1175, allocations: 43.64 kB / 0.4948 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.402e-05/0.1176, allocations: 39.14 kB / 0.4948 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1176, allocations: 0 / 0.4948 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.1176, allocations: 0 / 0.4948 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1176, allocations: 4 kB / 0.4948 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.1182, allocations: 0.6414 MB / 0.4955 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1182, allocations: 4.062 kB / 0.4955 GB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.1183, allocations: 63.84 kB / 0.4955 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.717e-05/0.1184, allocations: 16.86 kB / 0.4955 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.1184, allocations: 7.984 kB / 0.4956 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004901/0.1189, allocations: 1.252 MB / 0.4968 GB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1189, allocations: 0 / 0.4968 GB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.1192, allocations: 471.5 kB / 0.4972 GB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.1195, allocations: 43.84 kB / 0.4973 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.1195, allocations: 11.98 kB / 0.4973 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.1196, allocations: 12 kB / 0.4973 GB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.1197, allocations: 19.97 kB / 0.4973 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1197, allocations: 7.984 kB / 0.4973 GB, free: 7.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.1198, allocations: 219.1 kB / 0.4975 GB, free: 7.516 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1198, allocations: 0 / 0.4975 GB, free: 7.516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002324/0.1201, allocations: 88 kB / 0.4976 GB, free: 7.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.inertiaRotor.phi,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 (27): * Single equations (assignments): 26 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 7.5e-05/0.1201, allocations: 108.9 kB / 0.4977 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.1205, allocations: 314.7 kB / 0.498 GB, free: 6.996 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1205, allocations: 4 kB / 0.498 GB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.1206, allocations: 215.4 kB / 0.4982 GB, free: 6.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.1209, allocations: 64.48 kB / 0.4983 GB, free: 6.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.122, allocations: 1.077 MB / 0.4993 GB, free: 5.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.1222, allocations: 227.4 kB / 0.4996 GB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.1222, allocations: 23.44 kB / 0.4996 GB, free: 5.312 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1222, allocations: 4 kB / 0.4996 GB, free: 5.309 MB / 362.7 MB Notification: Performance of Templates: time 0.005796/0.128, allocations: 6.734 MB / 0.5062 GB, free: 14.59 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.265225715003908]