Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001262, allocations: 121.8 kB / 17.84 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 199.5 kB / 18.79 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 75.75 kB / 366.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2713, allocations: 53.31 MB / 420.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003843/0.2751, allocations: 1.898 MB / 422.1 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.2777, allocations: 1.286 MB / 423.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.2779, allocations: 7.938 kB / 423.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.2783, allocations: 67.66 kB / 423.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.2787, allocations: 131.4 kB / 423.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008247/0.2795, allocations: 230.4 kB / 423.8 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.2798, allocations: 179.5 kB / 423.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2799, allocations: 17.55 kB / 424 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.28, allocations: 79.69 kB / 424 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.2802, allocations: 87.59 kB / 424.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.2802, allocations: 12 kB / 424.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.2804, allocations: 67.95 kB / 424.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.962e-05/0.2805, allocations: 59.77 kB / 424.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2806, allocations: 71.48 kB / 424.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004013/0.281, allocations: 249.9 kB / 424.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.281, allocations: 0 / 424.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.281, allocations: 0 / 424.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.281, allocations: 0 / 424.6 MB, free: 3.867 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.0008465/0.2818, allocations: 0.5455 MB / 425.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2819, allocations: 8.031 kB / 425.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.098e-05/0.282, allocations: 42.73 kB / 425.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.88e-05/0.282, allocations: 20.8 kB / 425.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.2825, allocations: 299.8 kB / 425.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2825, allocations: 4.375 kB / 425.5 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.2826, allocations: 11.92 kB / 425.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.2829, allocations: 151.6 kB / 425.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2829, allocations: 0 / 425.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.283, allocations: 7.984 kB / 425.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.283, allocations: 0 / 425.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.2831, allocations: 35.92 kB / 425.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.2837, allocations: 402.2 kB / 426.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.2839, allocations: 111.9 kB / 426.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.851e-05/0.284, allocations: 42.56 kB / 426.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.284, allocations: 4 kB / 426.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.2842, allocations: 79.38 kB / 426.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.2842, allocations: 0 / 426.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003976/0.2846, allocations: 149.6 kB / 426.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.2848, allocations: 170.5 kB / 426.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.2851, allocations: 338.6 kB / 427 MB, free: 1.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2852, allocations: 25.7 kB / 427 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2853, allocations: 132.1 kB / 427.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.2853, allocations: 15.89 kB / 427.1 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.374e-05/0.2854, allocations: 29.7 kB / 427.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2855, allocations: 334.8 kB / 427.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.083e-05/0.2856, allocations: 28.05 kB / 427.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.2857, allocations: 90.78 kB / 427.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.2859, allocations: 84.22 kB / 427.7 MB, free: 420 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2859, allocations: 4 kB / 427.7 MB, free: 416 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002413/0.2861, allocations: 121.5 kB / 427.8 MB, free: 288 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2861, allocations: 8 kB / 427.8 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.2861, allocations: 0 / 427.8 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2862, allocations: 0 / 427.8 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2863, allocations: 23.92 kB / 427.8 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.2863, allocations: 4.125 kB / 427.8 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.528e-05/0.2863, allocations: 19.86 kB / 427.9 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.2863, allocations: 7.938 kB / 427.9 MB, free: 224 kB / 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.0001552/0.2865, allocations: 153.8 kB / 428 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.2866, allocations: 73.44 kB / 428.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.2867, allocations: 25.7 kB / 428.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2867, allocations: 4 kB / 428.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2867, allocations: 0 / 428.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.2867, allocations: 8 kB / 428.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002498/0.2869, allocations: 237.6 kB / 428.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2869, allocations: 4 kB / 428.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.606e-05/0.287, allocations: 15.92 kB / 428.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.287, allocations: 0 / 428.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.287, allocations: 8.062 kB / 428.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.287, allocations: 4 kB / 428.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.287, allocations: 0 / 428.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.2873, allocations: 174.6 kB / 428.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.2874, allocations: 112.9 kB / 428.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2875, allocations: 8 kB / 428.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.962e-05/0.2875, allocations: 0 / 428.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.2876, allocations: 15.92 kB / 428.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.2876, allocations: 4 kB / 428.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.2879, allocations: 249.9 kB / 428.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2879, allocations: 4 kB / 428.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000269/0.2881, allocations: 35.94 kB / 429 MB, free: 15 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.002148/0.2903, allocations: 1.023 MB / 430 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2906, allocations: 75.84 kB / 430.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2906, allocations: 0 / 430.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.077e-05/0.2907, allocations: 23.98 kB / 430.1 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.2911, allocations: 65.81 kB / 430.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.2939, allocations: 2.22 MB / 432.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.2942, allocations: 0.7475 MB / 433.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.512e-05/0.2943, allocations: 25.55 kB / 433.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.2944, allocations: 55.42 kB / 433.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2944, allocations: 0 / 433.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03899/0.3334, allocations: 5.383 MB / 438.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.416, allocations: 4 kB / 438.6 MB, free: 5.484 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1)