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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001253, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 258.3 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001879/0.001879, allocations: 64.77 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002843/0.262, allocations: 1.623 MB / 433.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.263, allocations: 0.5609 MB / 434.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.326e-05/0.2631, allocations: 4 kB / 434.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.992e-05/0.2632, allocations: 15.8 kB / 434.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.2633, allocations: 11.92 kB / 434.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.2637, allocations: 63.75 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.2638, allocations: 51.84 kB / 434.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.2639, allocations: 15.98 kB / 434.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.264, allocations: 35.73 kB / 434.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.297e-05/0.2641, allocations: 23.86 kB / 434.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.2641, allocations: 4 kB / 434.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.296e-05/0.2641, allocations: 8 kB / 434.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.746e-05/0.2642, allocations: 15.97 kB / 434.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.798e-05/0.2642, allocations: 31.73 kB / 434.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.2644, allocations: 72.52 kB / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2644, allocations: 0 / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2644, allocations: 0 / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.2644, allocations: 0 / 434.5 MB, free: 4.312 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.0004811/0.2649, allocations: 309.9 kB / 434.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2649, allocations: 12.03 kB / 434.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4e-05/0.2649, allocations: 30.75 kB / 434.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.2651, allocations: 24.81 kB / 434.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.2653, allocations: 146.3 kB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.2653, allocations: 4.375 kB / 435 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.2653, allocations: 4.375 kB / 435 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.2656, allocations: 141.9 kB / 435.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2656, allocations: 0 / 435.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.2657, allocations: 0 / 435.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2657, allocations: 0 / 435.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.663e-05/0.2657, allocations: 27.92 kB / 435.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.2661, allocations: 253.7 kB / 435.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.2663, allocations: 79.72 kB / 435.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.287e-05/0.2664, allocations: 38.62 kB / 435.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.2664, allocations: 0 / 435.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.2664, allocations: 42.56 kB / 435.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 7.81e-07/0.2664, allocations: 0 / 435.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002828/0.2667, allocations: 97.53 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.2668, allocations: 110.8 kB / 435.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.2669, allocations: 140.6 kB / 435.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2669, allocations: 37.7 kB / 435.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.267, allocations: 84.14 kB / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.267, allocations: 11.89 kB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.916e-05/0.267, allocations: 21.7 kB / 436 MB, free: 2.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2672, allocations: 322.8 kB / 436.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.105e-05/0.2672, allocations: 15.98 kB / 436.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.438e-05/0.2673, allocations: 48.27 kB / 436.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.2674, allocations: 60.22 kB / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2674, allocations: 0 / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001598/0.2676, allocations: 93.5 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2676, allocations: 11.94 kB / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2676, allocations: 0 / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2676, allocations: 0 / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.634e-05/0.2677, allocations: 11.98 kB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.2677, allocations: 4 kB / 436.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.629e-05/0.2677, allocations: 11.89 kB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.2677, allocations: 0 / 436.6 MB, free: 1.883 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.0001048/0.2678, allocations: 133.9 kB / 436.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.153e-05/0.2679, allocations: 57.64 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.2679, allocations: 8.344 kB / 436.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2679, allocations: 7.938 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2679, allocations: 0 / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2679, allocations: 0 / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.2681, allocations: 148.7 kB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2681, allocations: 4 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.2682, allocations: 15.92 kB / 437 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2682, allocations: 0 / 437 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.2682, allocations: 8 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2682, allocations: 0 / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2682, allocations: 4 kB / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.2684, allocations: 181.1 kB / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.056e-05/0.2684, allocations: 23.92 kB / 437.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.2685, allocations: 4 kB / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.2685, allocations: 4 kB / 437.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/0.2686, allocations: 11.92 kB / 437.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.2686, allocations: 4 kB / 437.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.652e-05/0.2686, allocations: 103.3 kB / 437.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2686, allocations: 0 / 437.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000224/0.2689, allocations: 8 kB / 437.3 MB, free: 1.082 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.0005564/0.2694, allocations: 0.7534 MB / 438.1 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.2696, allocations: 47.84 kB / 438.1 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2696, allocations: 320 / 438.1 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.932e-05/0.2696, allocations: 15.98 kB / 438.1 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.27, allocations: 35.94 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.2714, allocations: 1.448 MB / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.2717, allocations: 0.7002 MB / 440.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.749e-05/0.2718, allocations: 11.78 kB / 440.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.2718, allocations: 19.42 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2718, allocations: 0 / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.2969, allocations: 1.829 MB / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.906, allocations: 8.75 kB / 442.2 MB, free: 12.17 MB / 350.1 MB " [Timeout remaining time 652] (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 1.79641e-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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.308087557088584] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'clockToSquareWave.y'] 7.97196272900328 7.98638944 7.71920747 Calling exit ...