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.TickBasedPulse.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.001182/0.001182, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001399/0.001399, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.373/1.373, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",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.001898/0.001898, allocations: 64.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2545, allocations: 53.37 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002567/0.2571, allocations: 1.456 MB / 433.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001905/0.2572, allocations: 39.91 kB / 433.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.091e-05/0.2573, allocations: 0 / 433.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.575e-05/0.2573, allocations: 3.938 kB / 433.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.482e-05/0.2574, allocations: 7.922 kB / 433.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.2576, allocations: 27.97 kB / 433.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.292e-05/0.2577, allocations: 39.92 kB / 433.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.339e-05/0.2578, allocations: 11.97 kB / 433.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.419e-05/0.2579, allocations: 23.81 kB / 433.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.281e-05/0.2579, allocations: 19.92 kB / 433.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.2579, allocations: 4 kB / 433.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.146e-05/0.2579, allocations: 4 kB / 433.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.332e-05/0.258, allocations: 11.92 kB / 433.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.292e-05/0.258, allocations: 15.92 kB / 433.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2581, allocations: 39.69 kB / 433.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2581, allocations: 7.938 kB / 433.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2581, allocations: 0 / 433.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2581, allocations: 0 / 433.6 MB, free: 5.207 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.0004371/0.2585, allocations: 267.3 kB / 433.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.2586, allocations: 16.02 kB / 433.9 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.2586, allocations: 34.75 kB / 433.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.2587, allocations: 8.891 kB / 433.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.2589, allocations: 126.5 kB / 434.1 MB, free: 4.703 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.259, allocations: 46.17 kB / 434.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.259, allocations: 8.375 kB / 434.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.2593, allocations: 119.6 kB / 434.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2593, allocations: 0 / 434.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-06/0.2593, allocations: 3.984 kB / 434.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2593, allocations: 0 / 434.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.787e-05/0.2594, allocations: 19.94 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.2595, allocations: 144.7 kB / 434.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2597, allocations: 54.69 kB / 434.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.157e-05/0.2598, allocations: 20.84 kB / 434.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-06/0.2598, allocations: 0 / 434.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.2598, allocations: 42.44 kB / 434.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.71e-07/0.2598, allocations: 0 / 434.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002019/0.26, allocations: 77.62 kB / 434.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.26, allocations: 59.39 kB / 434.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.97e-05/0.2601, allocations: 101.9 kB / 434.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2601, allocations: 29.7 kB / 434.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.2602, allocations: 84.12 kB / 434.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.2602, allocations: 7.953 kB / 434.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.2602, allocations: 21.72 kB / 434.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.2604, allocations: 318.8 kB / 435.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.775e-05/0.2604, allocations: 12 kB / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.87e-05/0.2604, allocations: 32.3 kB / 435.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.002e-05/0.2605, allocations: 56.16 kB / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2605, allocations: 0 / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.621e-05/0.2606, allocations: 73.52 kB / 435.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2606, allocations: 11.94 kB / 435.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.2606, allocations: 0 / 435.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.2606, allocations: 4 kB / 435.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.184e-05/0.2606, allocations: 7.938 kB / 435.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2606, allocations: 4.156 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.2607, allocations: 8 kB / 435.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-06/0.2607, allocations: 0 / 435.4 MB, free: 3.191 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: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 8.679e-05/0.2608, allocations: 117.8 kB / 435.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.58e-05/0.2609, allocations: 61.58 kB / 435.6 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.2609, allocations: 12.05 kB / 435.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2609, allocations: 4 kB / 435.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2609, allocations: 448 / 435.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2609, allocations: 0 / 435.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.578e-05/0.261, allocations: 132.7 kB / 435.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.261, allocations: 4 kB / 435.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.761e-06/0.261, allocations: 3.938 kB / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.261, allocations: 7.938 kB / 435.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.261, allocations: 4 kB / 435.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.261, allocations: 0 / 435.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.261, allocations: 0 / 435.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.2611, allocations: 93.14 kB / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.2612, allocations: 11.94 kB / 435.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.2612, allocations: 0 / 435.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.364e-05/0.2612, allocations: 8 kB / 435.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.693e-06/0.2612, allocations: 0 / 435.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.2612, allocations: 4 kB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.546e-05/0.2613, allocations: 87.2 kB / 435.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2613, allocations: 0 / 435.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001827/0.2615, allocations: 8 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0004771/0.2619, allocations: 0.6515 MB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001089/0.262, allocations: 35.92 kB / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.262, allocations: 0 / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.262, allocations: 0 / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.2627, allocations: 0.7145 MB / 437.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.2638, allocations: 1.233 MB / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.264, allocations: 0.6807 MB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.086e-05/0.2641, allocations: 7.984 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.352e-05/0.2641, allocations: 15.44 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2641, allocations: 0 / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.2876, allocations: 1.72 MB / 441 MB, free: 13.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.831, allocations: 6.891 kB / 441 MB, free: 13.42 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.137131240684539] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 7.896673506591469 7.911201795 7.650184976 Calling exit ...