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.001605/0.001605, allocations: 100.3 kB / 19.71 MB, free: 440 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.001884/0.001884, allocations: 216.2 kB / 23 MB, free: 2.98 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.013/1.013, allocations: 230.6 MB / 256.8 MB, free: 9.59 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.005302/0.005302, allocations: 1.597 MB / 314.8 MB, free: 332 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.00156/0.00156, allocations: 73.5 kB / 437.1 MB, free: 46.56 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.08069, allocations: 53.76 MB / 490.9 MB, free: 10.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.DCPMBraking): time 0.004345/0.08504, allocations: 4.094 MB / 495 MB, free: 6.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.08653, allocations: 1.339 MB / 496.3 MB, free: 5.312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002471/0.08678, allocations: 19.88 kB / 496.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007821/0.08756, allocations: 202.5 kB / 496.5 MB, free: 5.094 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.08778, allocations: 210.3 kB / 496.7 MB, free: 4.887 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.08794, allocations: 135.8 kB / 496.9 MB, free: 4.754 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004515/0.08839, allocations: 0.665 MB / 497.5 MB, free: 4.086 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/0.08866, allocations: 181 kB / 497.7 MB, free: 3.906 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.08895, allocations: 274.9 kB / 498 MB, free: 3.637 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.08919, allocations: 242.7 kB / 498.2 MB, free: 3.398 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.08924, allocations: 64 kB / 498.3 MB, free: 3.336 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.08935, allocations: 76 kB / 498.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-05/0.08941, allocations: 131.5 kB / 498.5 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.08956, allocations: 254.8 kB / 498.7 MB, free: 2.883 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005668/0.09012, allocations: 0.7159 MB / 499.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.09013, allocations: 0 / 499.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.09013, allocations: 0 / 499.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.09014, allocations: 0 / 499.4 MB, free: 2.164 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.0009687/0.09111, allocations: 0.7894 MB / 0.4885 GB, free: 1.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.09116, allocations: 8.031 kB / 0.4885 GB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.09133, allocations: 84.5 kB / 0.4886 GB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/0.09177, allocations: 343.4 kB / 0.4889 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.0918, allocations: 37.69 kB / 0.4889 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.09191, allocations: 68.44 kB / 0.489 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005806/0.09249, allocations: 0.5346 MB / 0.4895 GB, free: 224 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.09251, allocations: 3.984 kB / 0.4895 GB, free: 220 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.09254, allocations: 23.94 kB / 0.4896 GB, free: 196 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.09255, allocations: 16 kB / 0.4896 GB, free: 180 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.09296, allocations: 311.9 kB / 0.4899 GB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.09457, allocations: 1.478 MB / 0.4913 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.09495, allocations: 239.3 kB / 0.4915 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.09509, allocations: 109.4 kB / 0.4916 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.09511, allocations: 4.281 kB / 0.4917 GB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.09514, allocations: 34.84 kB / 0.4917 GB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.664e-06/0.09514, allocations: 0 / 0.4917 GB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.001692/0.09683, allocations: 1.097 MB / 0.4928 GB, free: 12.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.09686, allocations: 59.34 kB / 0.4928 GB, free: 12.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.09711, allocations: 328.5 kB / 0.4931 GB, free: 12.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.09713, allocations: 29.7 kB / 0.4932 GB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.09725, allocations: 280.9 kB / 0.4934 GB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.471e-05/0.09732, allocations: 138.8 kB / 0.4936 GB, free: 11.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.232e-05/0.09739, allocations: 78.08 kB / 0.4936 GB, free: 11.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.09748, allocations: 354.7 kB / 0.494 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.0976, allocations: 96.84 kB / 0.4941 GB, free: 11.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.09775, allocations: 190.4 kB / 0.4942 GB, free: 11.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.09806, allocations: 323 kB / 0.4946 GB, free: 10.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09806, allocations: 0 / 0.4946 GB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004173/0.09848, allocations: 413.6 kB / 0.4949 GB, free: 10.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.09849, allocations: 8.062 kB / 0.495 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.0985, allocations: 4 kB / 0.495 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001427/0.09864, allocations: 44.83 kB / 0.495 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.09881, allocations: 83.84 kB / 0.4951 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008028/0.09962, allocations: 1.429 MB / 0.4965 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.362e-05/0.09971, allocations: 12.06 kB / 0.4965 GB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.09972, allocations: 20 kB / 0.4965 GB, free: 8.691 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.0001393/0.09986, allocations: 173.7 kB / 0.4967 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.0999, allocations: 35.77 kB / 0.4967 GB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.09995, allocations: 51.89 kB / 0.4968 GB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.09995, allocations: 4 kB / 0.4968 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.09995, allocations: 4 kB / 0.4968 GB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.09996, allocations: 3.984 kB / 0.4968 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.1007, allocations: 0.7961 MB / 0.4975 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1007, allocations: 3.938 kB / 0.4975 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1009, allocations: 63.97 kB / 0.4976 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.232e-05/0.101, allocations: 40.72 kB / 0.4976 GB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.101, allocations: 7.984 kB / 0.4977 GB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007724/0.1018, allocations: 1.359 MB / 0.499 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1018, allocations: 3.938 kB / 0.499 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.1023, allocations: 0.5407 MB / 0.4995 GB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.556e-05/0.1023, allocations: 55.8 kB / 0.4996 GB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.1024, allocations: 8 kB / 0.4996 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1025, allocations: 20.06 kB / 0.4996 GB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.1025, allocations: 27.94 kB / 0.4996 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.1025, allocations: 12 kB / 0.4996 GB, free: 5.301 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001486/0.1027, allocations: 235.1 kB / 0.4999 GB, free: 5.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1027, allocations: 0 / 0.4999 GB, free: 5.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002542/0.1029, allocations: 108 kB / 0.5 GB, free: 4.965 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 8.273e-05/0.103, allocations: 104.9 kB / 0.5001 GB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.1034, allocations: 382.8 kB / 0.5004 GB, free: 4.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1034, allocations: 4.062 kB / 0.5004 GB, free: 4.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.1036, allocations: 255.4 kB / 0.5007 GB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.1039, allocations: 72.92 kB / 0.5007 GB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.1052, allocations: 1.196 MB / 0.5019 GB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.1053, allocations: 242 kB / 0.5021 GB, free: 2.633 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.1054, allocations: 35.44 kB / 0.5022 GB, free: 2.598 MB / 362.7 MB Notification: Performance of SimCode: time 4.8e-07/0.1054, allocations: 0 / 0.5022 GB, free: 2.598 MB / 362.7 MB Notification: Performance of Templates: time 0.006331/0.1117, allocations: 7.693 MB / 0.5097 GB, free: 10.91 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 > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.17814306775108]