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.BackSample.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.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 197.2 kB / 18.73 MB, free: 4.312 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.375/1.375, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001847/0.001847, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2176, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003168/0.2209, allocations: 1.929 MB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.2228, allocations: 1.235 MB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.604e-05/0.2229, allocations: 7.938 kB / 412.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005604/0.2235, allocations: 147.5 kB / 412.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00034/0.2238, allocations: 155.4 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.2243, allocations: 178.6 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.2246, allocations: 203.4 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.2247, allocations: 33.66 kB / 412.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2248, allocations: 79.58 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.225, allocations: 83.62 kB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.225, allocations: 8 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.2251, allocations: 67.89 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.2252, allocations: 43.84 kB / 413.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.145e-05/0.2253, allocations: 75.48 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.2256, allocations: 222.2 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2257, allocations: 0 / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.2257, allocations: 0 / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2257, allocations: 3.938 kB / 413.5 MB, free: 12.9 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007455/0.2264, allocations: 0.5271 MB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2265, allocations: 8.031 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.275e-05/0.2265, allocations: 42.73 kB / 414.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.802e-05/0.2266, allocations: 24.8 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.2269, allocations: 282.9 kB / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.2269, allocations: 12.36 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.227, allocations: 11.94 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003608/0.2273, allocations: 170.9 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.2273, allocations: 0 / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.2274, allocations: 7.984 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.2274, allocations: 4 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.2275, allocations: 39.92 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.228, allocations: 375.2 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.2282, allocations: 134.5 kB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.221e-05/0.2283, allocations: 55.42 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.2284, allocations: 4.078 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/0.2285, allocations: 83.31 kB / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.2285, allocations: 0 / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004033/0.2289, allocations: 161.4 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.695e-05/0.229, allocations: 166.5 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.2293, allocations: 286.5 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2294, allocations: 25.7 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.94e-05/0.2294, allocations: 128.4 kB / 416 MB, free: 10.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.2295, allocations: 15.84 kB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.575e-05/0.2296, allocations: 33.7 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2297, allocations: 334.8 kB / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.59e-05/0.2298, allocations: 24 kB / 416.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.2299, allocations: 83.58 kB / 416.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.2301, allocations: 93.97 kB / 416.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2301, allocations: 4 kB / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002335/0.2303, allocations: 133.3 kB / 416.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.2304, allocations: 12.19 kB / 416.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2304, allocations: 0 / 416.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2304, allocations: 4 kB / 416.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.113e-05/0.2305, allocations: 8.312 kB / 416.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.2305, allocations: 7.984 kB / 416.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.814e-05/0.2306, allocations: 15.88 kB / 416.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.2306, allocations: 8 kB / 416.8 MB, free: 9.246 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001198/0.2307, allocations: 141.8 kB / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.2308, allocations: 81.48 kB / 417 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.026e-05/0.2309, allocations: 25.7 kB / 417 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2309, allocations: 4 kB / 417 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2309, allocations: 0 / 417 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2309, allocations: 3.938 kB / 417 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.2311, allocations: 233.5 kB / 417.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.2312, allocations: 4 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.2312, allocations: 11.94 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2312, allocations: 0 / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.2312, allocations: 8.078 kB / 417.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2313, allocations: 4 kB / 417.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2313, allocations: 4 kB / 417.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.2315, allocations: 171.4 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-05/0.2316, allocations: 105 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.2317, allocations: 12 kB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.365e-05/0.2317, allocations: 7.984 kB / 417.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.2318, allocations: 11.88 kB / 417.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.2318, allocations: 4 kB / 417.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.232, allocations: 206 kB / 417.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.232, allocations: 0 / 417.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.2323, allocations: 35.92 kB / 417.8 MB, free: 8.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001869/0.2342, allocations: 1.023 MB / 418.9 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.2344, allocations: 80.03 kB / 418.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2344, allocations: 0 / 418.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.906e-05/0.2345, allocations: 27.92 kB / 419 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.2349, allocations: 81.03 kB / 419 MB, free: 6.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.2372, allocations: 2.056 MB / 421.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.2375, allocations: 0.7359 MB / 421.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.2376, allocations: 25.52 kB / 421.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.292e-05/0.2377, allocations: 51.42 kB / 421.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2377, allocations: 0 / 421.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8938/1.132, allocations: 5.004 MB / 426.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.907/10.04, allocations: 14.42 kB / 426.9 MB, free: 15.11 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_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_BackSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1)