Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.00127/0.00127, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001369/0.001369, allocations: 192.8 kB / 24.51 MB, free: 4.016 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.344/1.344, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 47.92 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2576, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003674/0.2612, allocations: 1.916 MB / 425.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2632, allocations: 1.064 MB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2633, allocations: 3.938 kB / 426.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006342/0.264, allocations: 163.5 kB / 426.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.2643, allocations: 107.6 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.2649, allocations: 206.5 kB / 426.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.2652, allocations: 183.5 kB / 427 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.2653, allocations: 21.73 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.2654, allocations: 83.62 kB / 427.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.2655, allocations: 79.67 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.2656, allocations: 8 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.2657, allocations: 55.91 kB / 427.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.383e-05/0.2658, allocations: 47.83 kB / 427.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.2659, allocations: 63.55 kB / 427.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.2662, allocations: 215.9 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2662, allocations: 0 / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2662, allocations: 0 / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2662, allocations: 0 / 427.6 MB, free: 10.38 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.0007813/0.267, allocations: 450.7 kB / 428 MB, free: 9.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2671, allocations: 12.03 kB / 428.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.478e-05/0.2671, allocations: 192 / 428.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.2671, allocations: 42.73 kB / 428.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.2672, allocations: 20.8 kB / 428.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.2675, allocations: 205.1 kB / 428.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2675, allocations: 8.125 kB / 428.3 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2676, allocations: 12 kB / 428.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.2679, allocations: 138.7 kB / 428.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2679, allocations: 0 / 428.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2679, allocations: 8 kB / 428.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2679, allocations: 0 / 428.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.268, allocations: 35.92 kB / 428.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005176/0.2685, allocations: 325.5 kB / 428.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.2688, allocations: 115.9 kB / 428.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.386e-05/0.2688, allocations: 42.56 kB / 429 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.2689, allocations: 3.938 kB / 429 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.269, allocations: 83.33 kB / 429.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.269, allocations: 0 / 429.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000373/0.2694, allocations: 141.5 kB / 429.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/0.2695, allocations: 136.4 kB / 429.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.2698, allocations: 268.9 kB / 429.6 MB, free: 8.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.2698, allocations: 29.64 kB / 429.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.2699, allocations: 124.3 kB / 429.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.2699, allocations: 19.84 kB / 429.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.27, allocations: 25.7 kB / 429.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2701, allocations: 330.8 kB / 430.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.24e-05/0.2702, allocations: 19.98 kB / 430.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.2703, allocations: 70 kB / 430.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.2704, allocations: 76.22 kB / 430.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2704, allocations: 0 / 430.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002205/0.2707, allocations: 117.5 kB / 430.4 MB, free: 7.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2707, allocations: 8 kB / 430.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.2707, allocations: 0 / 430.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2707, allocations: 4 kB / 430.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.712e-05/0.2708, allocations: 15.92 kB / 430.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2708, allocations: 7.938 kB / 430.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.901e-05/0.2709, allocations: 7.953 kB / 430.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.2709, allocations: 4 kB / 430.5 MB, free: 7.227 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,sample1.u,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.0001291/0.271, allocations: 141.9 kB / 430.6 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.758e-05/0.2711, allocations: 65.53 kB / 430.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002267/0.2713, allocations: 103.3 kB / 430.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2713, allocations: 4.375 kB / 430.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.2713, allocations: 3.938 kB / 430.8 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2713, allocations: 3.984 kB / 430.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.2715, allocations: 200.7 kB / 431 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.2715, allocations: 4 kB / 431 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-05/0.2716, allocations: 7.938 kB / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2716, allocations: 4.062 kB / 431 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2716, allocations: 4 kB / 431 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2716, allocations: 4 kB / 431 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2716, allocations: 7.875 kB / 431 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.2719, allocations: 150.7 kB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.2719, allocations: 31.84 kB / 431.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.2719, allocations: 8 kB / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.952e-05/0.272, allocations: 7.984 kB / 431.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.272, allocations: 8.031 kB / 431.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2721, allocations: 7.938 kB / 431.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.2723, allocations: 196.5 kB / 431.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2723, allocations: 0 / 431.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.2725, allocations: 27.94 kB / 431.4 MB, free: 6.164 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,sample1.u,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 (9): * Single equations (assignments): 7 * 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.001939/0.2745, allocations: 0.9955 MB / 432.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.2747, allocations: 63.86 kB / 432.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2747, allocations: 4.25 kB / 432.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.793e-05/0.2747, allocations: 27.98 kB / 432.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.2751, allocations: 71.73 kB / 432.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.2775, allocations: 1.932 MB / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.2779, allocations: 0.7357 MB / 435.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.445e-05/0.2779, allocations: 21.48 kB / 435.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.401e-05/0.278, allocations: 43.42 kB / 435.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.278, allocations: 0 / 435.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/0.3043, allocations: 4.75 MB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.97, allocations: 15.97 kB / 440.1 MB, free: 13.59 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.307017955987249] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.172781740955543 11.186857474 10.917630644 Calling exit ...