Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001293/0.001293, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001274/0.001274, allocations: 188.4 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 47.94 kB / 371.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2505, allocations: 52.19 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003463/0.254, allocations: 1.861 MB / 425.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.2558, allocations: 1.056 MB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.256, allocations: 4 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.2563, allocations: 67.66 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003138/0.2566, allocations: 91.59 kB / 426.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000699/0.2573, allocations: 257.6 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.2576, allocations: 171.5 kB / 426.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.2577, allocations: 23.84 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.2578, allocations: 83.62 kB / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.258, allocations: 83.61 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.258, allocations: 8 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.2581, allocations: 71.94 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.2582, allocations: 47.84 kB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.321e-05/0.2583, allocations: 63.53 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.2587, allocations: 239 kB / 427.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2587, allocations: 4 kB / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2587, allocations: 0 / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2587, allocations: 0 / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007353/0.2594, allocations: 470.5 kB / 427.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2595, allocations: 12.03 kB / 427.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.617e-05/0.2595, allocations: 4.188 kB / 427.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.585e-05/0.2595, allocations: 38.73 kB / 428 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.719e-05/0.2596, allocations: 28.8 kB / 428 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.26, allocations: 229.5 kB / 428.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2601, allocations: 8.125 kB / 428.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.2601, allocations: 11.94 kB / 428.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.2605, allocations: 214.7 kB / 428.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2605, allocations: 0 / 428.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.2605, allocations: 0 / 428.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.2605, allocations: 4 kB / 428.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001241/0.2606, allocations: 39.97 kB / 428.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.2612, allocations: 349.4 kB / 428.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002555/0.2614, allocations: 115.9 kB / 428.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2615, allocations: 46.56 kB / 429 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.2615, allocations: 0 / 429 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.2617, allocations: 83.31 kB / 429.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.2617, allocations: 0 / 429.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004112/0.2621, allocations: 157.4 kB / 429.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.2622, allocations: 162.2 kB / 429.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.2626, allocations: 329.8 kB / 429.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.2626, allocations: 29.64 kB / 429.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2627, allocations: 132 kB / 429.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.2628, allocations: 15.91 kB / 429.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.2628, allocations: 33.66 kB / 429.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.263, allocations: 330.8 kB / 430.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.056e-05/0.2631, allocations: 23.98 kB / 430.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2632, allocations: 168.3 kB / 430.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.2634, allocations: 92.2 kB / 430.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2634, allocations: 0 / 430.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002381/0.2636, allocations: 125.5 kB / 430.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2637, allocations: 4 kB / 430.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2637, allocations: 4.438 kB / 430.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2637, allocations: 4 kB / 430.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.2638, allocations: 19.98 kB / 430.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.2638, allocations: 7.938 kB / 430.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.933e-05/0.2639, allocations: 15.89 kB / 430.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.2639, allocations: 7.984 kB / 430.7 MB, free: 6.688 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001356/0.264, allocations: 153.8 kB / 430.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.2641, allocations: 73.52 kB / 430.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.2644, allocations: 123.4 kB / 431 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2644, allocations: 4 kB / 431 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2644, allocations: 3.938 kB / 431 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2644, allocations: 3.984 kB / 431.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.2646, allocations: 192.7 kB / 431.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2646, allocations: 0 / 431.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.076e-05/0.2647, allocations: 11.98 kB / 431.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2647, allocations: 4 kB / 431.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.2647, allocations: 7.938 kB / 431.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.2647, allocations: 7.938 kB / 431.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2647, allocations: 3.938 kB / 431.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.265, allocations: 182.5 kB / 431.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.676e-05/0.2651, allocations: 35.78 kB / 431.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.2651, allocations: 8 kB / 431.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.2652, allocations: 7.984 kB / 431.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.2653, allocations: 15.92 kB / 431.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.2653, allocations: 7.984 kB / 431.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.2655, allocations: 237.2 kB / 431.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2655, allocations: 4 kB / 431.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002479/0.2658, allocations: 28 kB / 431.8 MB, free: 5.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002036/0.2678, allocations: 1.048 MB / 432.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.268, allocations: 87.83 kB / 432.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.268, allocations: 0 / 432.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.432e-05/0.2681, allocations: 27.98 kB / 433 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.2685, allocations: 62.48 kB / 433 MB, free: 4.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.2712, allocations: 2.219 MB / 435.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.2714, allocations: 131.9 kB / 435.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.119e-05/0.2715, allocations: 33.75 kB / 435.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.2716, allocations: 59.41 kB / 435.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2716, allocations: 0 / 435.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.2999, allocations: 5.696 MB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.07, allocations: 4.062 kB / 441.2 MB, free: 12.26 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.394504923024215] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.275103703024797 11.289390197 11.027776902 Calling exit ...