Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0014/0.0014, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 198 kB / 18.74 MB, free: 4.332 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.426/1.426, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001903/0.001903, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2848, allocations: 50.54 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003624/0.2885, allocations: 2.007 MB / 411.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.2907, allocations: 1.247 MB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.291, allocations: 4 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006246/0.2916, allocations: 170.7 kB / 412.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004435/0.292, allocations: 151.4 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006748/0.2927, allocations: 211.3 kB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.2931, allocations: 231.4 kB / 413.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.2933, allocations: 44.3 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.2934, allocations: 95.61 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.2936, allocations: 95.55 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.442e-05/0.2936, allocations: 12 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.2938, allocations: 67.89 kB / 413.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.312e-05/0.2939, allocations: 55.84 kB / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.294, allocations: 91.39 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.2944, allocations: 262 kB / 413.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2944, allocations: 0 / 413.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2944, allocations: 0 / 413.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.2944, allocations: 4 kB / 413.8 MB, free: 12.66 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008795/0.2953, allocations: 0.566 MB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2954, allocations: 12.03 kB / 414.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.2954, allocations: 46.69 kB / 414.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.915e-05/0.2955, allocations: 28.8 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.2959, allocations: 286.9 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2959, allocations: 16.38 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.296, allocations: 11.94 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005532/0.2965, allocations: 298.5 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2966, allocations: 4 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.2966, allocations: 4 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.2966, allocations: 4 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.2967, allocations: 59.91 kB / 415.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005578/0.2973, allocations: 398.2 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003911/0.2977, allocations: 180 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.2979, allocations: 82.55 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.2979, allocations: 4 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.2981, allocations: 83.31 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.864e-06/0.2981, allocations: 0 / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005246/0.2986, allocations: 229.4 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2988, allocations: 140.5 kB / 416.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.2991, allocations: 284.9 kB / 416.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.2991, allocations: 37.7 kB / 416.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/0.2992, allocations: 120.6 kB / 416.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.2993, allocations: 23.84 kB / 416.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.2994, allocations: 49.94 kB / 416.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.2996, allocations: 338.8 kB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.2e-05/0.2997, allocations: 36.45 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.2999, allocations: 170 kB / 417.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/0.3001, allocations: 207.2 kB / 417.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3001, allocations: 384 / 417.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003814/0.3005, allocations: 221.6 kB / 417.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3006, allocations: 8.062 kB / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3006, allocations: 4 kB / 417.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.3006, allocations: 15.92 kB / 417.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.577e-05/0.3007, allocations: 19.94 kB / 417.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.3007, allocations: 7.984 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.3009, allocations: 27.77 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.3009, allocations: 16 kB / 417.7 MB, free: 8.262 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001869/0.3011, allocations: 160.3 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.3013, allocations: 141.4 kB / 418 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.107e-05/0.3014, allocations: 29.7 kB / 418.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3014, allocations: 4 kB / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3014, allocations: 0 / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3014, allocations: 3.938 kB / 418.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.3017, allocations: 241.5 kB / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3017, allocations: 0 / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.209e-05/0.3017, allocations: 12 kB / 418.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.3017, allocations: 3.938 kB / 418.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.3018, allocations: 11.92 kB / 418.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.3018, allocations: 4 kB / 418.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3018, allocations: 0 / 418.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.3021, allocations: 228 kB / 418.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.3023, allocations: 120.9 kB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.3023, allocations: 8 kB / 418.7 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.3024, allocations: 8 kB / 418.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3025, allocations: 11.98 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.3025, allocations: 4 kB / 418.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.3027, allocations: 212.3 kB / 418.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 0 / 418.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.303, allocations: 43.94 kB / 419 MB, free: 6.934 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.002254/0.3053, allocations: 1.152 MB / 420.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.3057, allocations: 139.9 kB / 420.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.3057, allocations: 8.125 kB / 420.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.336e-05/0.3058, allocations: 23.92 kB / 420.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.3063, allocations: 120.2 kB / 420.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.3094, allocations: 2.405 MB / 422.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.3098, allocations: 0.7635 MB / 423.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.3099, allocations: 26.55 kB / 423.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3101, allocations: 67.41 kB / 423.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3101, allocations: 0 / 423.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.3372, allocations: 5.64 MB / 429.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.514/8.852, allocations: 7.984 kB / 429.3 MB, free: 12.67 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1)