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.001247/0.001247, allocations: 105.1 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.001418/0.001418, allocations: 213.7 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.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.00194/0.00194, allocations: 61.02 kB / 378.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2754, allocations: 53.38 MB / 431.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.0029/0.2783, allocations: 1.452 MB / 433.4 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002194/0.2785, allocations: 43.84 kB / 433.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.245e-05/0.2785, allocations: 0 / 433.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.052e-05/0.2786, allocations: 3.938 kB / 433.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.2786, allocations: 0 / 433.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.2789, allocations: 43.25 kB / 433.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.279, allocations: 39.92 kB / 433.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2791, allocations: 0 / 433.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.2792, allocations: 23.91 kB / 433.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.954e-05/0.2792, allocations: 27.92 kB / 433.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.2793, allocations: 0 / 433.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.2793, allocations: 4 kB / 433.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.842e-05/0.2793, allocations: 11.94 kB / 433.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.05e-05/0.2793, allocations: 15.92 kB / 433.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.2795, allocations: 39.67 kB / 433.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2795, allocations: 0 / 433.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2795, allocations: 3.938 kB / 433.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.2795, allocations: 4 kB / 433.6 MB, free: 5.395 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.28, allocations: 271.5 kB / 433.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.28, allocations: 12.03 kB / 433.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.224e-05/0.2801, allocations: 42.73 kB / 433.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.2801, allocations: 4.891 kB / 433.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.2804, allocations: 126.4 kB / 434.1 MB, free: 4.883 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.0001127/0.2805, allocations: 30.27 kB / 434.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.2805, allocations: 12.36 kB / 434.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.2809, allocations: 135.5 kB / 434.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2809, allocations: 0 / 434.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.2809, allocations: 0 / 434.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2809, allocations: 4 kB / 434.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.758e-05/0.2809, allocations: 15.98 kB / 434.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.2811, allocations: 136.7 kB / 434.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.2813, allocations: 54.69 kB / 434.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.2814, allocations: 32.78 kB / 434.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.2814, allocations: 0 / 434.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.2814, allocations: 38.5 kB / 434.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.2814, allocations: 3.938 kB / 434.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002752/0.2817, allocations: 73.69 kB / 434.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.2818, allocations: 55.41 kB / 434.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.2819, allocations: 101.8 kB / 434.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.2819, allocations: 37.7 kB / 434.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.2819, allocations: 80.14 kB / 434.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.282, allocations: 11.94 kB / 434.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.282, allocations: 21.66 kB / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.2822, allocations: 314.8 kB / 435.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.209e-05/0.2822, allocations: 11.98 kB / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.387e-05/0.2823, allocations: 40.3 kB / 435.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.325e-05/0.2823, allocations: 40.23 kB / 435.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.2823, allocations: 7.984 kB / 435.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001248/0.2824, allocations: 77.52 kB / 435.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.2825, allocations: 7.938 kB / 435.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2825, allocations: 4 kB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.2825, allocations: 0 / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.291e-05/0.2825, allocations: 8 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.2826, allocations: 4 kB / 435.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.2826, allocations: 0 / 435.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-06/0.2826, allocations: 4 kB / 435.4 MB, free: 3.375 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 0.0001032/0.2827, allocations: 121.9 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2828, allocations: 61.62 kB / 435.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.2828, allocations: 8.062 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.2828, allocations: 3.938 kB / 435.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2828, allocations: 3.984 kB / 435.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2829, allocations: 96 / 435.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.283, allocations: 132.7 kB / 435.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.283, allocations: 4.422 kB / 435.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.283, allocations: 0 / 435.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.283, allocations: 7.875 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.283, allocations: 8 kB / 435.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.283, allocations: 4 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.283, allocations: 0 / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.2832, allocations: 93.02 kB / 435.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.304e-05/0.2832, allocations: 7.922 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.2832, allocations: 4 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.364e-05/0.2832, allocations: 4 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-06/0.2832, allocations: 4 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.2832, allocations: 0 / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.801e-05/0.2833, allocations: 91.27 kB / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2833, allocations: 0 / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002051/0.2835, allocations: 8 kB / 436 MB, free: 2.738 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.0006054/0.2841, allocations: 0.6475 MB / 436.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.2843, allocations: 36.05 kB / 436.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.2843, allocations: 0 / 436.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.945e-06/0.2843, allocations: 3.938 kB / 436.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007665/0.285, allocations: 0.7091 MB / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.2862, allocations: 1.23 MB / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.2865, allocations: 0.6807 MB / 439.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.308e-05/0.2865, allocations: 0 / 439.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.2866, allocations: 23.42 kB / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2866, allocations: 0 / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.3112, allocations: 1.718 MB / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.346, allocations: 15.8 kB / 441 MB, free: 13.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 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.682953876908869] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.416779144667089 8.441218794 8.157165376 Calling exit ...