Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_ClockSignals_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.001455/0.001455, 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.00148/0.00148, allocations: 198 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.535/1.535, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002015/0.002015, allocations: 67.89 kB / 358.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3153, allocations: 50.54 MB / 409.1 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003089/0.3185, allocations: 1.572 MB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3196, allocations: 0.5452 MB / 411.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.016e-05/0.3197, allocations: 4 kB / 411.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.475e-05/0.3198, allocations: 11.86 kB / 411.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.3199, allocations: 19.92 kB / 411.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003472/0.3203, allocations: 63.75 kB / 411.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.3204, allocations: 43.8 kB / 411.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3205, allocations: 16.17 kB / 411.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.3207, allocations: 27.91 kB / 411.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.932e-05/0.3208, allocations: 19.86 kB / 411.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.3208, allocations: 4 kB / 411.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.887e-05/0.3208, allocations: 12 kB / 411.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.3209, allocations: 15.94 kB / 411.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.333e-05/0.321, allocations: 27.78 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.3211, allocations: 66.62 kB / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3211, allocations: 0 / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3211, allocations: 0 / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.3212, allocations: 0 / 411.5 MB, free: 14.98 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005348/0.3217, allocations: 383 kB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3217, allocations: 12.03 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.3218, allocations: 38.75 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.322, allocations: 16.88 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.3223, allocations: 202.4 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3223, allocations: 8.125 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.3223, allocations: 4 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.3226, allocations: 105 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3226, allocations: 3.938 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3227, allocations: 7.984 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3227, allocations: 0 / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.753e-05/0.3227, allocations: 15.98 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.3231, allocations: 261.8 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.3232, allocations: 49.14 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.658e-05/0.3233, allocations: 13.78 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.3233, allocations: 3.984 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.3233, allocations: 42.56 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.372e-06/0.3233, allocations: 0 / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002582/0.3236, allocations: 65.56 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.3237, allocations: 88.98 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.3238, allocations: 148.7 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.3239, allocations: 29.7 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.3239, allocations: 96.31 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.324, allocations: 4 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.324, allocations: 17.72 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3242, allocations: 318.8 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/0.3242, allocations: 8 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.534e-05/0.3243, allocations: 21.64 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.331e-05/0.3244, allocations: 33.77 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3244, allocations: 0 / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001247/0.3245, allocations: 57.58 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3246, allocations: 8 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3246, allocations: 0 / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.3246, allocations: 0 / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.943e-05/0.3247, allocations: 7.984 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3247, allocations: 4 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.657e-05/0.3247, allocations: 8 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.3248, allocations: 0 / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001082/0.3249, allocations: 117.8 kB / 413.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-05/0.3249, allocations: 45.62 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.325, allocations: 11.88 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.325, allocations: 0 / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.325, allocations: 7.938 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.325, allocations: 0 / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.3252, allocations: 173.7 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3252, allocations: 0 / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.55e-05/0.3253, allocations: 7.984 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3253, allocations: 0 / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3253, allocations: 4 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3253, allocations: 0 / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3253, allocations: 3.938 kB / 413.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.3256, allocations: 168.3 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.019e-05/0.3256, allocations: 89.05 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.3257, allocations: 0 / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.426e-05/0.3257, allocations: 4 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.3258, allocations: 3.938 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/0.3258, allocations: 0 / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.3259, allocations: 115.2 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3259, allocations: 0 / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.3261, allocations: 4.031 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0006091/0.3267, allocations: 0.7004 MB / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3269, allocations: 24.02 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3269, allocations: 0 / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.007e-05/0.327, allocations: 15.92 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.3273, allocations: 23.84 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.3288, allocations: 1.331 MB / 416.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.3292, allocations: 0.6885 MB / 417.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.611e-05/0.3292, allocations: 4 kB / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.831e-05/0.3293, allocations: 19.44 kB / 417.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3293, allocations: 0 / 417.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.3527, allocations: 1.653 MB / 418.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.897, allocations: 6.984 kB / 418.7 MB, free: 7.348 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.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_ClockSignals_ShiftSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1)