Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 117.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.001734/0.001734, allocations: 199.8 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.551/1.551, 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.001941/0.001941, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3112, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003097/0.3143, allocations: 1.6 MB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3155, allocations: 0.5532 MB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.076e-05/0.3156, allocations: 4 kB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.054e-05/0.3156, allocations: 7.875 kB / 411.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.3158, allocations: 15.92 kB / 411.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.3161, allocations: 66.75 kB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.3163, allocations: 47.84 kB / 411.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.784e-05/0.3164, allocations: 19.98 kB / 411.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.3165, allocations: 35.78 kB / 411.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.336e-05/0.3166, allocations: 19.92 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.3166, allocations: 4 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.298e-05/0.3166, allocations: 7.938 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.705e-05/0.3167, allocations: 11.98 kB / 411.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.417e-05/0.3168, allocations: 35.73 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3169, allocations: 66.67 kB / 411.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3169, allocations: 8 kB / 411.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3169, allocations: 0 / 411.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.317, allocations: 0 / 411.6 MB, free: 14.86 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005347/0.3175, allocations: 383.1 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3175, allocations: 11.97 kB / 412 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3176, allocations: 38.73 kB / 412 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.3177, allocations: 16.89 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.3181, allocations: 200.2 kB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3181, allocations: 12.31 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.3181, allocations: 4.375 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.3184, allocations: 126 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3184, allocations: 11.92 kB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3185, allocations: 7.938 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3185, allocations: 3.984 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.737e-05/0.3186, allocations: 19.98 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.319, allocations: 286.5 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.3193, allocations: 164.9 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.065e-05/0.3193, allocations: 34.62 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.3194, allocations: 0 / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.3194, allocations: 42.56 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.3194, allocations: 0 / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002982/0.3197, allocations: 97.48 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/0.3198, allocations: 106.8 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.32, allocations: 141.8 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.32, allocations: 33.95 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.3201, allocations: 84.14 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.3201, allocations: 11.89 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.3202, allocations: 29.66 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3203, allocations: 314.8 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.071e-05/0.3204, allocations: 15.98 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.02e-05/0.3205, allocations: 48.28 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.3206, allocations: 60.22 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3206, allocations: 0 / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001814/0.3208, allocations: 89.55 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3208, allocations: 10.97 kB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3208, allocations: 160 / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3209, allocations: 0 / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.625e-05/0.3209, allocations: 11.98 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.321, allocations: 11.92 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.691e-05/0.321, allocations: 3.953 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.321, allocations: 4 kB / 414 MB, free: 12.14 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: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001201/0.3212, allocations: 137.8 kB / 414.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.3213, allocations: 53.64 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.3213, allocations: 8.531 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3213, allocations: 8 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3213, allocations: 3.984 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3213, allocations: 3.938 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.3216, allocations: 177.6 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3216, allocations: 3.938 kB / 414.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.039e-05/0.3216, allocations: 19.92 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3216, allocations: 4 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.3217, allocations: 4 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3217, allocations: 0 / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3217, allocations: 4 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.3219, allocations: 181.1 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.899e-05/0.322, allocations: 93.05 kB / 414.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.322, allocations: 11.94 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.3221, allocations: 3.984 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.3221, allocations: 8 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3222, allocations: 0 / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.83e-05/0.3223, allocations: 113.7 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3223, allocations: 0 / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.3225, allocations: 8 kB / 414.8 MB, free: 11.19 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0006836/0.3232, allocations: 0.7531 MB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.3234, allocations: 43.91 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3234, allocations: 4.312 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.3234, allocations: 8 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.3239, allocations: 33.31 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.3255, allocations: 1.455 MB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.3258, allocations: 0.6962 MB / 417.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.682e-05/0.3259, allocations: 11.78 kB / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.3259, allocations: 23.42 kB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3259, allocations: 0 / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.3496, allocations: 1.806 MB / 419.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/8.268, allocations: 11.17 kB / 419.6 MB, free: 6.355 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_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_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1)