Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001565/0.001565, allocations: 111.6 kB / 17.08 MB, free: 5.98 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.001596/0.001596, allocations: 192.7 kB / 20.03 MB, free: 3.051 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.379/1.379, allocations: 205.1 MB / 227.9 MB, free: 4.375 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.05088/0.05088, allocations: 8.117 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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [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.002257/0.002257, allocations: 75.86 kB / 396.1 MB, free: 6.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2484, allocations: 48.31 MB / 444.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002874/0.2514, allocations: 1.937 MB / 446.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004639/0.2519, allocations: 241.8 kB / 446.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.253e-05/0.2519, allocations: 6.844 kB / 446.6 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.652e-05/0.252, allocations: 21.08 kB / 446.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.955e-05/0.2521, allocations: 47.72 kB / 446.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.2523, allocations: 50.62 kB / 446.7 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.2525, allocations: 188.3 kB / 446.9 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.2527, allocations: 102.9 kB / 447 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.795e-05/0.2528, allocations: 73.58 kB / 447 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.2529, allocations: 83.86 kB / 447.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.2529, allocations: 19.72 kB / 447.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.157e-05/0.253, allocations: 17.38 kB / 447.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.971e-05/0.253, allocations: 40.98 kB / 447.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.553e-05/0.2531, allocations: 91.94 kB / 447.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002085/0.2533, allocations: 206.8 kB / 447.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2533, allocations: 0 / 447.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2534, allocations: 0 / 447.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.2534, allocations: 0 / 447.5 MB, free: 6.75 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.000563/0.2539, allocations: 463.2 kB / 447.9 MB, free: 6.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.254, allocations: 10 kB / 448 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.254, allocations: 20.73 kB / 448 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.8e-05/0.2541, allocations: 179.2 kB / 448.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.2541, allocations: 11.91 kB / 448.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.2542, allocations: 26.34 kB / 448.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.2545, allocations: 179.8 kB / 448.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.2546, allocations: 0.9375 kB / 448.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.2546, allocations: 14.78 kB / 448.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2546, allocations: 12.39 kB / 448.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.2548, allocations: 111.1 kB / 448.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.2559, allocations: 0.6947 MB / 449.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.2563, allocations: 221.6 kB / 449.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.2565, allocations: 96.73 kB / 449.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.2565, allocations: 1.891 kB / 449.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.2567, allocations: 97.98 kB / 449.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.2567, allocations: 0 / 449.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008307/0.2576, allocations: 0.5085 MB / 450.1 MB, free: 4.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.2576, allocations: 54.42 kB / 450.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.348e-05/0.2577, allocations: 133.4 kB / 450.3 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.2577, allocations: 27.2 kB / 450.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.569e-05/0.2578, allocations: 135.7 kB / 450.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.2578, allocations: 68.77 kB / 450.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/0.2579, allocations: 45.52 kB / 450.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.2579, allocations: 325.6 kB / 450.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-05/0.258, allocations: 50.78 kB / 450.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.2581, allocations: 99.95 kB / 451 MB, free: 3.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.2583, allocations: 171.3 kB / 451.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2583, allocations: 0 / 451.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000268/0.2586, allocations: 208.7 kB / 451.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2586, allocations: 9.438 kB / 451.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2586, allocations: 3.359 kB / 451.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2587, allocations: 2.688 kB / 451.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.2589, allocations: 50.14 kB / 451.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2589, allocations: 2.75 kB / 451.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.259, allocations: 7.5 kB / 451.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.259, allocations: 12.25 kB / 451.5 MB, free: 3.656 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.917e-05/0.2591, allocations: 130.6 kB / 451.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.2591, allocations: 17.95 kB / 451.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.281e-05/0.2592, allocations: 19.05 kB / 451.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2592, allocations: 2.75 kB / 451.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2592, allocations: 0.8906 kB / 451.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2592, allocations: 0.9375 kB / 451.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/0.2598, allocations: 0.5109 MB / 452.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2598, allocations: 0 / 452.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.26, allocations: 44.12 kB / 452.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.26, allocations: 4 kB / 452.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.26, allocations: 2.641 kB / 452.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.26, allocations: 0.875 kB / 452.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.26, allocations: 5.719 kB / 452.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.2604, allocations: 302.4 kB / 452.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.2604, allocations: 83.97 kB / 452.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.2604, allocations: 2.188 kB / 452.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/0.2605, allocations: 5.656 kB / 452.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.2606, allocations: 17.59 kB / 452.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.2606, allocations: 12.34 kB / 452.6 MB, free: 2.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.172e-05/0.2606, allocations: 96.78 kB / 452.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2606, allocations: 0 / 452.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.2609, allocations: 38.31 kB / 452.8 MB, free: 2.68 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.641e-05/0.261, allocations: 113.5 kB / 452.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.2613, allocations: 141.2 kB / 453 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2613, allocations: 0 / 453 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.2614, allocations: 60.22 kB / 453.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.2616, allocations: 12.52 kB / 453.1 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008657/0.2625, allocations: 0.5723 MB / 453.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.2627, allocations: 0.7278 MB / 454.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.491e-05/0.2628, allocations: 17.19 kB / 454.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2628, allocations: 0 / 454.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of Templates: time 0.003638/0.2664, allocations: 1.733 MB / 456.1 MB, free: 1.016 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.425006664125249] Failed to read output from testmodel.py, exit status != 0: 0.2731419790070504 0.285933766 0.030018295 Calling exit ...