Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001543, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 214.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.5 MB / 258.2 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 67.84 kB / 378.5 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2636, allocations: 53.4 MB / 431.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003556/0.2671, allocations: 1.87 MB / 433.8 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.2694, allocations: 1.2 MB / 435 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2695, allocations: 11.88 kB / 435 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002948/0.2698, allocations: 71.66 kB / 435 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003728/0.2702, allocations: 135.4 kB / 435.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006652/0.2709, allocations: 226.9 kB / 435.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.2712, allocations: 175.5 kB / 435.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.2713, allocations: 23.84 kB / 435.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2714, allocations: 83.69 kB / 435.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.2715, allocations: 91.55 kB / 435.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.2716, allocations: 8 kB / 435.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.2717, allocations: 71.94 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.824e-05/0.2718, allocations: 51.84 kB / 435.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.798e-05/0.2719, allocations: 59.55 kB / 436 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000391/0.2723, allocations: 258.8 kB / 436.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2723, allocations: 0 / 436.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2723, allocations: 0 / 436.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2723, allocations: 0 / 436.2 MB, free: 2.176 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.0007276/0.273, allocations: 474.6 kB / 436.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2731, allocations: 12.03 kB / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.522e-05/0.2731, allocations: 192 / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.573e-05/0.2731, allocations: 46.67 kB / 436.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.2732, allocations: 24.8 kB / 436.8 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.2736, allocations: 229.5 kB / 437 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.2736, allocations: 8.375 kB / 437 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2736, allocations: 4.375 kB / 437 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.274, allocations: 218.9 kB / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.274, allocations: 0 / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.2741, allocations: 7.938 kB / 437.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2741, allocations: 0 / 437.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.2742, allocations: 43.95 kB / 437.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005584/0.2747, allocations: 345.4 kB / 437.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.275, allocations: 115.9 kB / 437.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.843e-05/0.2751, allocations: 46.56 kB / 437.8 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.2751, allocations: 4 kB / 437.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001818/0.2753, allocations: 83.31 kB / 437.8 MB, free: 348 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.2753, allocations: 0 / 437.8 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003945/0.2757, allocations: 157.4 kB / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.2758, allocations: 158.2 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.2762, allocations: 338.1 kB / 438.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.2762, allocations: 33.7 kB / 438.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.696e-05/0.2763, allocations: 128.1 kB / 438.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.2763, allocations: 19.89 kB / 438.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.2764, allocations: 25.72 kB / 438.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2766, allocations: 338.8 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.758e-05/0.2766, allocations: 27.92 kB / 439 MB, free: 15.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.2768, allocations: 167.9 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.277, allocations: 96.22 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.277, allocations: 0 / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002528/0.2772, allocations: 129.4 kB / 439.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2772, allocations: 4 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.2772, allocations: 4 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.2773, allocations: 0 / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2774, allocations: 23.98 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2774, allocations: 320 / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.793e-05/0.2775, allocations: 12.06 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.2775, allocations: 15.88 kB / 439.5 MB, free: 14.56 MB / 350.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.0001814/0.2777, allocations: 159.2 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.242e-05/0.2777, allocations: 65.52 kB / 439.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002942/0.278, allocations: 131.4 kB / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.278, allocations: 4 kB / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.278, allocations: 0 / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.278, allocations: 0 / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.2783, allocations: 204.7 kB / 440 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2783, allocations: 0 / 440 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.269e-05/0.2783, allocations: 15.98 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2783, allocations: 0 / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.2784, allocations: 4 kB / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2784, allocations: 0 / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2784, allocations: 0 / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.2787, allocations: 174.5 kB / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.828e-05/0.2788, allocations: 43.83 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.2788, allocations: 3.938 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.363e-05/0.2789, allocations: 12 kB / 440.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.2789, allocations: 8.031 kB / 440.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.2789, allocations: 11.97 kB / 440.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003119/0.2792, allocations: 253.1 kB / 440.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2792, allocations: 0 / 440.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.2795, allocations: 35.94 kB / 440.6 MB, free: 13.37 MB / 350.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.002229/0.2817, allocations: 1.059 MB / 441.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.282, allocations: 71.91 kB / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.282, allocations: 0 / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.931e-05/0.2821, allocations: 35.92 kB / 441.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.2825, allocations: 66.19 kB / 441.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.2856, allocations: 2.253 MB / 444.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.2858, allocations: 135.9 kB / 444.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.186e-05/0.2858, allocations: 21.48 kB / 444.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.286, allocations: 59.41 kB / 444.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.286, allocations: 0 / 444.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.3131, allocations: 5.805 MB / 450.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.68, allocations: 4 kB / 450.1 MB, free: 3.91 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.19698554801289] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.903042917023413 11.919088394 11.643621254 Calling exit ...