Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.0009832/0.0009832, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001416/0.0024, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001044/0.001044, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.002491, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.073/1.073, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08206/1.155, allocations: 53.67 MB / 243.4 MB, free: 15.48 MB / 250.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.00757/0.00757, allocations: 1.194 MB / 245.3 MB, free: 13.6 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001885/0.009454, allocations: 0.8232 MB / 246.2 MB, free: 12.77 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.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") translateModel(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 247.4 MB, free: 11.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.251e-05, allocations: 10.25 kB / 247.5 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.00377/0.003793, allocations: 2.499 MB / 250 MB, free: 8.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.005144, allocations: 0.9578 MB / 250.9 MB, free: 7.992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.005252, allocations: 3.938 kB / 250.9 MB, free: 7.988 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.005541, allocations: 95.27 kB / 251 MB, free: 7.895 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.005755, allocations: 115.1 kB / 251.1 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.005942, allocations: 111.8 kB / 251.2 MB, free: 7.672 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.006291, allocations: 351.4 kB / 251.6 MB, free: 7.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.006415, allocations: 50.73 kB / 251.6 MB, free: 7.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.006762, allocations: 239.6 kB / 251.9 MB, free: 7.043 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.006976, allocations: 131.7 kB / 252 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.722e-05/0.007023, allocations: 24 kB / 252 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.007172, allocations: 83.86 kB / 252.1 MB, free: 6.809 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.007273, allocations: 51.8 kB / 252.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.535e-05/0.007368, allocations: 71.88 kB / 252.2 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.007751, allocations: 255 kB / 252.5 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.279e-05/0.007764, allocations: 4 kB / 252.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.007765, allocations: 0 / 252.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.007775, allocations: 0 / 252.5 MB, free: 6.434 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008203/0.008595, allocations: 0.5462 MB / 253 MB, free: 5.863 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.008628, allocations: 11.98 kB / 253 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/0.008701, allocations: 32.91 kB / 253.1 MB, free: 5.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.008967, allocations: 199 kB / 253.2 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.008993, allocations: 16.88 kB / 253.3 MB, free: 5.582 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.009037, allocations: 24.31 kB / 253.3 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.009349, allocations: 215.8 kB / 253.5 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.009364, allocations: 4.188 kB / 253.5 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.009388, allocations: 8.312 kB / 253.5 MB, free: 5.316 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.009397, allocations: 7.938 kB / 253.5 MB, free: 5.309 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.009594, allocations: 97.8 kB / 253.6 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.01061, allocations: 0.7081 MB / 254.3 MB, free: 4.465 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.0108, allocations: 110.2 kB / 254.4 MB, free: 4.352 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.533e-05/0.01088, allocations: 44.84 kB / 254.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.0109, allocations: 4 kB / 254.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.01092, allocations: 34.56 kB / 254.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.01092, allocations: 0 / 254.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.000892/0.01182, allocations: 317.5 kB / 254.8 MB, free: 3.941 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.01184, allocations: 51.41 kB / 254.9 MB, free: 3.879 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.01202, allocations: 215.9 kB / 255.1 MB, free: 3.652 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.01205, allocations: 33.69 kB / 255.1 MB, free: 3.613 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.01212, allocations: 140.4 kB / 255.3 MB, free: 3.473 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.009e-05/0.01218, allocations: 79.41 kB / 255.3 MB, free: 3.395 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.01226, allocations: 53.91 kB / 255.4 MB, free: 3.332 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.01236, allocations: 338.8 kB / 255.7 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.206e-05/0.01244, allocations: 40.55 kB / 255.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.01256, allocations: 113.2 kB / 255.9 MB, free: 2.816 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.01274, allocations: 153 kB / 256 MB, free: 2.641 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01274, allocations: 4 kB / 256 MB, free: 2.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003459/0.01309, allocations: 202.8 kB / 256.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.0131, allocations: 8 kB / 256.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.01311, allocations: 0 / 256.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002792/0.01338, allocations: 132.9 kB / 256.4 MB, free: 2.289 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.01355, allocations: 47.91 kB / 256.4 MB, free: 2.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003955/0.01394, allocations: 0.5851 MB / 257 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.0141, allocations: 43.84 kB / 257 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.01411, allocations: 8 kB / 257 MB, free: 1.578 MB / 250.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 (25): * Single equations (assignments): 24 * 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.0001023/0.01422, allocations: 136.5 kB / 257.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.01427, allocations: 19.98 kB / 257.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.01432, allocations: 29.95 kB / 257.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.01432, allocations: 0 / 257.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.01432, allocations: 3.938 kB / 257.2 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.01433, allocations: 15.92 kB / 257.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006429/0.01497, allocations: 399.7 kB / 257.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.01498, allocations: 0 / 257.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.01511, allocations: 27.98 kB / 257.7 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.01518, allocations: 35.77 kB / 257.7 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.0154, allocations: 116.8 kB / 257.8 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.01542, allocations: 7.984 kB / 257.8 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003702/0.01579, allocations: 0.5918 MB / 258.4 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01579, allocations: 0 / 258.4 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.01625, allocations: 337.6 kB / 258.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.01629, allocations: 8 kB / 258.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.01644, allocations: 23.97 kB / 258.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.52e-05/0.01653, allocations: 39.91 kB / 258.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.01655, allocations: 11.92 kB / 258.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.01662, allocations: 66.05 kB / 258.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01662, allocations: 4 kB / 258.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.01692, allocations: 71.88 kB / 259 MB, free: 15.57 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,brake.phi) * 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 (14): * Single equations (assignments): 13 * 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.001286/0.01821, allocations: 497.8 kB / 259.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003057/0.01851, allocations: 154 kB / 259.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.046e-06/0.01852, allocations: 4 kB / 259.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.01868, allocations: 101.5 kB / 259.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.01907, allocations: 320.7 kB / 260 MB, free: 14.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004585/0.02366, allocations: 0.7395 MB / 260.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.114e-05/0.02372, allocations: 88.31 kB / 260.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.334e-05/0.02379, allocations: 17.94 kB / 260.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.02391, allocations: 91.36 kB / 260.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02392, allocations: 0 / 260.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of Templates: time 0.008248/0.03216, allocations: 4.873 MB / 265.8 MB, free: 8.871 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6921308394521475]