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.001257/0.001257, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001352/0.001352, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.371/1.371, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.001498/0.001498, allocations: 51.92 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.261, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003435/0.2644, allocations: 1.908 MB / 425.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.2663, allocations: 1.134 MB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2665, allocations: 11.94 kB / 426.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.2668, allocations: 63.67 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.2671, allocations: 99.58 kB / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007047/0.2678, allocations: 262.1 kB / 426.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.268, allocations: 183.5 kB / 427.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2681, allocations: 17.73 kB / 427.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.2682, allocations: 79.64 kB / 427.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.2684, allocations: 83.66 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.2684, allocations: 8 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.2686, allocations: 75.94 kB / 427.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.169e-05/0.2686, allocations: 47.78 kB / 427.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.358e-05/0.2687, allocations: 75.48 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.2691, allocations: 239.8 kB / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2691, allocations: 0 / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2691, allocations: 0 / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.2691, allocations: 8 kB / 427.7 MB, free: 10.32 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.000704/0.2698, allocations: 474.5 kB / 428.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.2698, allocations: 8.031 kB / 428.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.246e-05/0.2698, allocations: 192 / 428.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.2699, allocations: 38.75 kB / 428.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.2699, allocations: 24.8 kB / 428.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.2703, allocations: 229.5 kB / 428.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.2703, allocations: 12.11 kB / 428.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.2703, allocations: 8 kB / 428.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.2707, allocations: 166.4 kB / 428.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2707, allocations: 0 / 428.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.2707, allocations: 4 kB / 428.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2707, allocations: 0 / 428.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.2708, allocations: 31.98 kB / 428.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005136/0.2714, allocations: 357.4 kB / 429 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.2716, allocations: 115.9 kB / 429.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.424e-05/0.2717, allocations: 38.56 kB / 429.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.2717, allocations: 11.98 kB / 429.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.2719, allocations: 75.33 kB / 429.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.2719, allocations: 0 / 429.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003834/0.2723, allocations: 153.4 kB / 429.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.2724, allocations: 170.3 kB / 429.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.2727, allocations: 325.8 kB / 429.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.2728, allocations: 33.7 kB / 429.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.2729, allocations: 124.1 kB / 430 MB, free: 7.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.2729, allocations: 15.91 kB / 430 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.2729, allocations: 33.66 kB / 430.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2731, allocations: 330.8 kB / 430.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.679e-05/0.2731, allocations: 19.98 kB / 430.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.2733, allocations: 90.84 kB / 430.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.2734, allocations: 88.16 kB / 430.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2734, allocations: 0 / 430.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002299/0.2737, allocations: 121.5 kB / 430.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2737, allocations: 11.98 kB / 430.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.2737, allocations: 0 / 430.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2737, allocations: 4 kB / 430.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2738, allocations: 12.31 kB / 430.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.2738, allocations: 7.938 kB / 430.7 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.2739, allocations: 20 kB / 430.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.2739, allocations: 15.94 kB / 430.8 MB, free: 6.902 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.0001422/0.274, allocations: 145.8 kB / 430.9 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.2741, allocations: 69.48 kB / 431 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.2744, allocations: 111.4 kB / 431.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2744, allocations: 3.984 kB / 431.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2744, allocations: 3.938 kB / 431.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2744, allocations: 8.062 kB / 431.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.2746, allocations: 212.7 kB / 431.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2746, allocations: 0 / 431.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.2747, allocations: 12 kB / 431.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.2747, allocations: 8.031 kB / 431.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.2747, allocations: 7.922 kB / 431.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2747, allocations: 0 / 431.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.2747, allocations: 7.938 kB / 431.4 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.275, allocations: 162.6 kB / 431.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.459e-05/0.2751, allocations: 43.78 kB / 431.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.2751, allocations: 0 / 431.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.562e-05/0.2752, allocations: 7.984 kB / 431.6 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.2752, allocations: 15.92 kB / 431.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.2753, allocations: 4 kB / 431.6 MB, free: 6.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.2755, allocations: 237.2 kB / 431.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2755, allocations: 4 kB / 431.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.2758, allocations: 32 kB / 431.9 MB, free: 5.734 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 (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.002014/0.2778, allocations: 1.014 MB / 432.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002482/0.278, allocations: 79.78 kB / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.278, allocations: 0 / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/0.2781, allocations: 27.98 kB / 433 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.2785, allocations: 63.84 kB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.2814, allocations: 2.201 MB / 435.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.2818, allocations: 0.7476 MB / 436 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.883e-05/0.2819, allocations: 29.47 kB / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.282, allocations: 55.42 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.282, allocations: 0 / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.3088, allocations: 5.434 MB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.89, allocations: 10.92 kB / 441.5 MB, free: 12.16 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.272994660947006] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 11.104012052004691 11.123589594 10.85159794 Calling exit ...