Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.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.000979/0.000979, allocations: 96.38 kB / 19.7 MB, free: 444 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.0009836/0.0009836, allocations: 216.2 kB / 23 MB, free: 2.957 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.091/1.091, allocations: 230.6 MB / 256.8 MB, free: 9.617 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.01218/0.01218, allocations: 1.604 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.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") translateModel(ElectricBraking.Examples.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") [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.001476/0.001476, allocations: 78.14 kB / 437.1 MB, free: 46.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09048, allocations: 53.77 MB / 490.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002994/0.09347, allocations: 2.37 MB / 493.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.09475, allocations: 0.9079 MB / 494.1 MB, free: 7.5 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.09486, allocations: 7.938 kB / 494.2 MB, free: 7.492 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.09526, allocations: 87.39 kB / 494.2 MB, free: 7.406 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.09547, allocations: 115.2 kB / 494.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.09564, allocations: 107.9 kB / 494.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000295/0.09593, allocations: 359.4 kB / 494.8 MB, free: 6.832 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.09608, allocations: 41.25 kB / 494.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.09635, allocations: 167.4 kB / 495 MB, free: 6.625 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.09654, allocations: 151.3 kB / 495.2 MB, free: 6.477 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.509e-05/0.09657, allocations: 28 kB / 495.2 MB, free: 6.449 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.09669, allocations: 75.98 kB / 495.3 MB, free: 6.375 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.09679, allocations: 83.67 kB / 495.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.09688, allocations: 119.4 kB / 495.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.09725, allocations: 370.5 kB / 495.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.09725, allocations: 4 kB / 495.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.09725, allocations: 0 / 495.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.09726, allocations: 0 / 495.8 MB, free: 5.809 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007175/0.09798, allocations: 0.5361 MB / 496.4 MB, free: 5.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.09802, allocations: 12.03 kB / 496.4 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.481e-05/0.09808, allocations: 32.75 kB / 496.4 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.09836, allocations: 221.8 kB / 496.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.09838, allocations: 20.75 kB / 496.6 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.09842, allocations: 20.38 kB / 496.7 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005841/0.09901, allocations: 278.9 kB / 496.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.09902, allocations: 0 / 496.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.09904, allocations: 12 kB / 496.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.09905, allocations: 4 kB / 497 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.09935, allocations: 229.5 kB / 497.2 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009544/0.1003, allocations: 0.8244 MB / 498 MB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002808/0.1006, allocations: 194.5 kB / 498.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.1007, allocations: 92.83 kB / 498.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1007, allocations: 8 kB / 498.3 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.1008, allocations: 38.5 kB / 498.3 MB, free: 3.168 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.1008, allocations: 0 / 498.3 MB, free: 3.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001623/0.1024, allocations: 0.9794 MB / 499.3 MB, free: 2.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.1024, allocations: 59.34 kB / 499.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1026, allocations: 240.9 kB / 499.6 MB, free: 1.816 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1026, allocations: 29.7 kB / 499.6 MB, free: 1.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.1027, allocations: 152.8 kB / 499.8 MB, free: 1.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.1027, allocations: 103.4 kB / 499.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.1028, allocations: 61.66 kB / 499.9 MB, free: 1.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.501e-05/0.1029, allocations: 330.8 kB / 0.4885 GB, free: 1.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.103, allocations: 104 kB / 0.4886 GB, free: 1.023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.1032, allocations: 180.2 kB / 0.4888 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1035, allocations: 227.5 kB / 0.489 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1035, allocations: 0 / 0.489 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005034/0.104, allocations: 391.4 kB / 0.4894 GB, free: 188 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.104, allocations: 8 kB / 0.4894 GB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.104, allocations: 0 / 0.4894 GB, free: 180 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.1043, allocations: 172.9 kB / 0.4896 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1044, allocations: 56.02 kB / 0.4896 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004735/0.1049, allocations: 0.6889 MB / 0.4903 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.105, allocations: 40.02 kB / 0.4903 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.105, allocations: 8 kB / 0.4903 GB, free: 15.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.1052, allocations: 147.7 kB / 0.4905 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.487e-05/0.1052, allocations: 19.86 kB / 0.4905 GB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.1052, allocations: 34.27 kB / 0.4905 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1052, allocations: 0 / 0.4905 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1052, allocations: 7.938 kB / 0.4905 GB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1052, allocations: 4 kB / 0.4905 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009587/0.1062, allocations: 0.7149 MB / 0.4912 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1062, allocations: 4 kB / 0.4912 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.1063, allocations: 40.05 kB / 0.4913 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002215/0.1065, allocations: 152.7 kB / 0.4914 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.1066, allocations: 11.98 kB / 0.4914 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004088/0.107, allocations: 0.6655 MB / 0.4921 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.107, allocations: 0 / 0.4921 GB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009007/0.1079, allocations: 0.5363 MB / 0.4926 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/0.108, allocations: 51.81 kB / 0.4927 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.108, allocations: 12 kB / 0.4927 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1081, allocations: 19.97 kB / 0.4927 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.1082, allocations: 51.91 kB / 0.4927 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.1082, allocations: 19.92 kB / 0.4928 GB, free: 12.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.1083, allocations: 164.5 kB / 0.4929 GB, free: 12.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1083, allocations: 0 / 0.4929 GB, free: 12.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000253/0.1086, allocations: 71.98 kB / 0.493 GB, free: 12.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008902/0.1095, allocations: 388.7 kB / 0.4934 GB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000442/0.1099, allocations: 247.8 kB / 0.4936 GB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1099, allocations: 0 / 0.4936 GB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.1101, allocations: 136.4 kB / 0.4937 GB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.1104, allocations: 52.41 kB / 0.4938 GB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1117, allocations: 0.8403 MB / 0.4946 GB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.1118, allocations: 150.2 kB / 0.4947 GB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.1118, allocations: 23.44 kB / 0.4948 GB, free: 10.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1118, allocations: 0 / 0.4948 GB, free: 10.63 MB / 362.7 MB Notification: Performance of Templates: time 0.00514/0.1169, allocations: 4.518 MB / 0.4992 GB, free: 6.117 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.440385892987251]