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.001795/0.001795, allocations: 118.7 kB / 17.13 MB, free: 5.758 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.001963/0.001963, allocations: 193.2 kB / 20.08 MB, free: 2.848 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.444/1.444, allocations: 207.6 MB / 230.5 MB, free: 4.02 MB / 174.1 MB " [Timeout remaining time 178] 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.08756/0.08756, allocations: 8.211 MB / 290.5 MB, free: 8.117 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.002287/0.002287, allocations: 71.91 kB / 406.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2337, allocations: 50.89 MB / 457.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002594/0.2363, allocations: 1.957 MB / 459.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003884/0.2366, allocations: 233.4 kB / 459.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.2367, allocations: 3.562 kB / 459.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.537e-05/0.2368, allocations: 27.38 kB / 459.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.573e-05/0.2369, allocations: 43.19 kB / 459.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.2371, allocations: 50.94 kB / 459.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.2372, allocations: 191.3 kB / 459.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.2374, allocations: 81.59 kB / 459.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.869e-05/0.2374, allocations: 69.06 kB / 459.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.2376, allocations: 77.56 kB / 460 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.2376, allocations: 18.16 kB / 460 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.19e-05/0.2376, allocations: 18.72 kB / 460 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.385e-05/0.2377, allocations: 45.19 kB / 460.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.996e-05/0.2377, allocations: 94.03 kB / 460.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.2379, allocations: 208.7 kB / 460.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2379, allocations: 0 / 460.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2379, allocations: 0 / 460.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.2379, allocations: 1.062 kB / 460.4 MB, free: 1.594 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.0005378/0.2385, allocations: 466.8 kB / 460.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.2385, allocations: 9.719 kB / 460.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.2385, allocations: 24.36 kB / 460.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.476e-05/0.2386, allocations: 178.2 kB / 461 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.2386, allocations: 16.25 kB / 461.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.2387, allocations: 21.17 kB / 461.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.2389, allocations: 175.1 kB / 461.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2389, allocations: 1.781 kB / 461.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.239, allocations: 17.45 kB / 461.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.239, allocations: 3.875 kB / 461.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.2392, allocations: 109.2 kB / 461.4 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008342/0.24, allocations: 0.6898 MB / 462.1 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.2403, allocations: 221.7 kB / 462.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.2405, allocations: 82.06 kB / 462.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.2405, allocations: 1.375 kB / 462.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.2408, allocations: 97.72 kB / 462.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.2408, allocations: 0 / 462.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009302/0.2417, allocations: 0.5121 MB / 463 MB, free: 15.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.2417, allocations: 53.28 kB / 463 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.2418, allocations: 130.4 kB / 463.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.2419, allocations: 31.14 kB / 463.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/0.242, allocations: 139.7 kB / 463.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.242, allocations: 67.27 kB / 463.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-05/0.2421, allocations: 45.7 kB / 463.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2422, allocations: 326.2 kB / 463.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.108e-05/0.2423, allocations: 44.36 kB / 463.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.2425, allocations: 104.3 kB / 463.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.2427, allocations: 164.5 kB / 464 MB, free: 14.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2427, allocations: 0 / 464 MB, free: 14.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003159/0.243, allocations: 212.2 kB / 464.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.243, allocations: 6.344 kB / 464.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.243, allocations: 2.625 kB / 464.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.243, allocations: 2.5 kB / 464.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.2432, allocations: 52.45 kB / 464.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.2433, allocations: 2.75 kB / 464.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.2433, allocations: 10.73 kB / 464.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.2433, allocations: 11.03 kB / 464.3 MB, free: 14.24 MB / 334.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 0.0001296/0.2435, allocations: 131.3 kB / 464.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.2435, allocations: 12.27 kB / 464.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.2436, allocations: 22.95 kB / 464.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2436, allocations: 2.188 kB / 464.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2436, allocations: 4 kB / 464.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2436, allocations: 5.094 kB / 464.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.2443, allocations: 0.5129 MB / 465 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2443, allocations: 1.062 kB / 465 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/0.2445, allocations: 33.95 kB / 465.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2445, allocations: 1.156 kB / 465.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.2445, allocations: 5.25 kB / 465.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2445, allocations: 1.156 kB / 465.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2445, allocations: 5.156 kB / 465.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003823/0.2449, allocations: 306.8 kB / 465.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.2449, allocations: 83.53 kB / 465.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.2449, allocations: 2.406 kB / 465.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.245, allocations: 4 kB / 465.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.2451, allocations: 9.719 kB / 465.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.2451, allocations: 11.3 kB / 465.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.734e-05/0.2451, allocations: 102.6 kB / 465.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2451, allocations: 4 kB / 465.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.2454, allocations: 37.84 kB / 465.6 MB, free: 13.18 MB / 334.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 0.0001091/0.2455, allocations: 116.2 kB / 465.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002562/0.2458, allocations: 132.5 kB / 465.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2458, allocations: 0 / 465.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.212e-05/0.2459, allocations: 52.23 kB / 465.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.2461, allocations: 11.66 kB / 465.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009988/0.2471, allocations: 0.576 MB / 466.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.2475, allocations: 0.7295 MB / 467.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.2476, allocations: 16.38 kB / 467.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2476, allocations: 0 / 467.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Templates: time 0.003674/0.2512, allocations: 1.75 MB / 469 MB, free: 10.88 MB / 334.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.568775554187596] Failed to read output from testmodel.py, exit status != 0: 0.2592054649721831 0.27287551199999993 0.031934508 Calling exit ...