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.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 122.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.001358/0.001358, allocations: 202 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.391/1.391, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001935/0.001935, allocations: 71.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2317, allocations: 50.54 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003395/0.2352, allocations: 1.898 MB / 411 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.2372, allocations: 1.212 MB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.2374, allocations: 7.938 kB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006016/0.238, allocations: 143.6 kB / 412.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000444/0.2385, allocations: 151.4 kB / 412.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005089/0.239, allocations: 167.4 kB / 412.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.2393, allocations: 199.4 kB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.2394, allocations: 33.53 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.2395, allocations: 71.7 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2397, allocations: 75.62 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.2397, allocations: 8 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.2399, allocations: 55.95 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.2399, allocations: 43.84 kB / 413.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.24, allocations: 75.48 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.2404, allocations: 214.2 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2404, allocations: 0 / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2404, allocations: 0 / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2404, allocations: 0 / 413.4 MB, free: 13 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.000781/0.2412, allocations: 0.5154 MB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.2413, allocations: 19.95 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.2413, allocations: 34.75 kB / 414 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.787e-05/0.2414, allocations: 24.8 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.2417, allocations: 271 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2418, allocations: 8.375 kB / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.2418, allocations: 7.938 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.2421, allocations: 154.3 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2421, allocations: 3.984 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.2421, allocations: 0 / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2421, allocations: 0 / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.2423, allocations: 43.91 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.2427, allocations: 358.4 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.243, allocations: 111.9 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.745e-05/0.2431, allocations: 46.5 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2431, allocations: 8 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.2433, allocations: 83.31 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.2433, allocations: 0 / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003491/0.2436, allocations: 141.4 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.951e-05/0.2437, allocations: 140.8 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.244, allocations: 272.9 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.2441, allocations: 25.7 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.533e-05/0.2441, allocations: 116.1 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.2442, allocations: 19.89 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.2442, allocations: 29.67 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2444, allocations: 330.8 kB / 416.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.318e-05/0.2444, allocations: 23.98 kB / 416.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.827e-05/0.2445, allocations: 73.94 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001372/0.2447, allocations: 80.19 kB / 416.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2447, allocations: 0 / 416.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002081/0.2449, allocations: 105.5 kB / 416.4 MB, free: 9.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2449, allocations: 11.98 kB / 416.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.245, allocations: 0 / 416.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.245, allocations: 4 kB / 416.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.53e-05/0.2451, allocations: 11.94 kB / 416.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2451, allocations: 4 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.724e-05/0.2451, allocations: 27.94 kB / 416.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.2452, allocations: 4 kB / 416.5 MB, free: 9.598 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,sample1.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 (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.000126/0.2453, allocations: 142.1 kB / 416.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.2454, allocations: 61.55 kB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.2454, allocations: 25.7 kB / 416.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2455, allocations: 4 kB / 416.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2455, allocations: 0 / 416.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.2455, allocations: 11.94 kB / 416.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.2457, allocations: 233.6 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2457, allocations: 3.938 kB / 416.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.591e-05/0.2457, allocations: 4 kB / 416.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.2458, allocations: 4 kB / 416.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.2458, allocations: 0 / 416.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2458, allocations: 3.938 kB / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2458, allocations: 4 kB / 416.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.246, allocations: 158.6 kB / 417.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-05/0.2461, allocations: 109 kB / 417.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.2462, allocations: 7.984 kB / 417.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.748e-05/0.2462, allocations: 4 kB / 417.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.633e-05/0.2463, allocations: 11.94 kB / 417.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.2463, allocations: 7.984 kB / 417.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.2465, allocations: 196.5 kB / 417.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2465, allocations: 4 kB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.2468, allocations: 27.92 kB / 417.5 MB, free: 8.484 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (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.00182/0.2486, allocations: 1.004 MB / 418.5 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.2488, allocations: 71.84 kB / 418.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2488, allocations: 7.875 kB / 418.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.99e-05/0.2489, allocations: 20 kB / 418.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.2493, allocations: 73.95 kB / 418.6 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.2515, allocations: 1.945 MB / 420.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.2518, allocations: 0.7241 MB / 421.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.997e-05/0.2519, allocations: 17.8 kB / 421.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.508e-05/0.252, allocations: 55.41 kB / 421.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of SimCode: time 1.923e-06/0.252, allocations: 0 / 421.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9043/1.156, allocations: 4.706 MB / 426.1 MB, free: 8 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.167/10.32, allocations: 7.75 kB / 426.1 MB, free: 4 kB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_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_ShiftSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1)