Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 115.1 kB / 17.08 MB, free: 5.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 191.7 kB / 20.03 MB, free: 2.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 227.9 MB, free: 4.352 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0506/0.0506, allocations: 8.107 MB / 285.4 MB, free: 10.94 MB / 238.1 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 71.89 kB / 396.1 MB, free: 6.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.241, allocations: 48.31 MB / 444.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.00305/0.2441, allocations: 1.894 MB / 446.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005063/0.2446, allocations: 143.6 kB / 446.4 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.2448, allocations: 2.531 kB / 446.4 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.216e-05/0.2449, allocations: 24.48 kB / 446.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.245, allocations: 43.14 kB / 446.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.2452, allocations: 41.61 kB / 446.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.2455, allocations: 170.5 kB / 446.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.2457, allocations: 96.48 kB / 446.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.773e-05/0.2458, allocations: 69.61 kB / 446.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2459, allocations: 73.5 kB / 446.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.2459, allocations: 16.88 kB / 446.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.553e-05/0.246, allocations: 16.78 kB / 447 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.373e-05/0.246, allocations: 39.84 kB / 447 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.607e-05/0.2461, allocations: 80.53 kB / 447.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.2463, allocations: 189.4 kB / 447.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2464, allocations: 0 / 447.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2464, allocations: 0 / 447.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2464, allocations: 0 / 447.3 MB, free: 7.074 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005215/0.2469, allocations: 457.9 kB / 447.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2469, allocations: 9.094 kB / 447.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.949e-05/0.247, allocations: 16.88 kB / 447.7 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.2471, allocations: 185.1 kB / 447.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2472, allocations: 11.06 kB / 447.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.2472, allocations: 20.62 kB / 447.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002769/0.2475, allocations: 154.7 kB / 448.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2475, allocations: 0.7812 kB / 448.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.2475, allocations: 13.81 kB / 448.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.2476, allocations: 4.094 kB / 448.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002259/0.2478, allocations: 108.4 kB / 448.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009849/0.2488, allocations: 0.6774 MB / 448.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.2492, allocations: 224.5 kB / 449.1 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.2494, allocations: 91.89 kB / 449.2 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.2494, allocations: 1.375 kB / 449.2 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/0.2494, allocations: 36.64 kB / 449.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.2495, allocations: 0 / 449.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006989/0.2502, allocations: 478.9 kB / 449.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.109e-05/0.2502, allocations: 58.77 kB / 449.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.2503, allocations: 125.1 kB / 449.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.2503, allocations: 31.08 kB / 449.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.353e-05/0.2503, allocations: 134.1 kB / 450.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.2504, allocations: 63.58 kB / 450.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.2504, allocations: 38.19 kB / 450.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.2505, allocations: 321.1 kB / 450.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.932e-05/0.2506, allocations: 46.17 kB / 450.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.2506, allocations: 93.75 kB / 450.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.2508, allocations: 146.5 kB / 450.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2508, allocations: 0 / 450.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002212/0.251, allocations: 177.5 kB / 450.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2511, allocations: 6.016 kB / 450.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2511, allocations: 1.125 kB / 450.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2511, allocations: 2.312 kB / 450.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.2513, allocations: 51.95 kB / 451 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2513, allocations: 2.484 kB / 451 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.82e-05/0.2513, allocations: 14.38 kB / 451 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.2514, allocations: 7.031 kB / 451 MB, free: 4.109 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/0.2514, allocations: 130.1 kB / 451.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.2515, allocations: 7.703 kB / 451.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.2515, allocations: 15.89 kB / 451.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.2515, allocations: 1.5 kB / 451.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.2515, allocations: 1.562 kB / 451.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.2515, allocations: 5.203 kB / 451.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000546/0.2521, allocations: 494.6 kB / 451.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.2521, allocations: 0 / 451.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.2523, allocations: 47.05 kB / 451.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2523, allocations: 1.312 kB / 451.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.2523, allocations: 1.281 kB / 451.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2523, allocations: 1.891 kB / 451.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2523, allocations: 0 / 451.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.2526, allocations: 276.6 kB / 452 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.2526, allocations: 87 kB / 452.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.2527, allocations: 6.297 kB / 452.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/0.2527, allocations: 1.281 kB / 452.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.949e-05/0.2528, allocations: 19.52 kB / 452.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.2528, allocations: 8.031 kB / 452.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.566e-05/0.2528, allocations: 93.94 kB / 452.2 MB, free: 3.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2528, allocations: 1.375 kB / 452.2 MB, free: 3.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.2531, allocations: 33.7 kB / 452.2 MB, free: 3.164 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.08e-05/0.2532, allocations: 104 kB / 452.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.2534, allocations: 118.1 kB / 452.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2534, allocations: 0 / 452.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.746e-05/0.2535, allocations: 56.22 kB / 452.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.2537, allocations: 10.69 kB / 452.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000761/0.2545, allocations: 0.5555 MB / 453 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2546, allocations: 0.7197 MB / 453.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.2547, allocations: 19.97 kB / 453.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2547, allocations: 0 / 453.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of Templates: time 0.004008/0.2587, allocations: 1.578 MB / 455.4 MB, free: 1.652 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.419428560184315] Failed to read output from testmodel.py, exit status != 0: 0.26570480107329786 0.27875878299999995 0.029771172000000002 Calling exit ...