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.001763/0.001763, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.002111/0.002111, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.429/1.429, allocations: 230.5 MB / 254.8 MB, free: 15.08 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.002198/0.002198, allocations: 67.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1018, allocations: 53.32 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002803/0.1046, allocations: 1.45 MB / 428.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002003/0.1048, allocations: 35.91 kB / 428.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.759e-05/0.1048, allocations: 4 kB / 428.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.763e-05/0.1048, allocations: 7.875 kB / 428.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.338e-05/0.1049, allocations: 7.938 kB / 428.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.1051, allocations: 27.95 kB / 428.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.409e-05/0.1052, allocations: 39.91 kB / 428.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.059e-05/0.1053, allocations: 12 kB / 428.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.635e-05/0.1054, allocations: 19.92 kB / 428.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.708e-05/0.1054, allocations: 15.92 kB / 428.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.1054, allocations: 7.938 kB / 428.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.119e-05/0.1054, allocations: 4 kB / 428.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.342e-05/0.1055, allocations: 11.97 kB / 428.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.1055, allocations: 15.88 kB / 428.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.1056, allocations: 39.83 kB / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1056, allocations: 0 / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.1056, allocations: 0 / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1056, allocations: 0 / 428.7 MB, free: 3.086 MB / 350.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.0004642/0.1061, allocations: 359.4 kB / 429 MB, free: 2.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1061, allocations: 12.03 kB / 429.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.1062, allocations: 34.75 kB / 429.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.1062, allocations: 8.891 kB / 429.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.1064, allocations: 176.3 kB / 429.3 MB, free: 2.41 MB / 350.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.0001066/0.1065, allocations: 40.88 kB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.1065, allocations: 384 / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.1068, allocations: 131.5 kB / 429.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1068, allocations: 4 kB / 429.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1069, allocations: 4 kB / 429.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1069, allocations: 0 / 429.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.608e-05/0.1069, allocations: 19.92 kB / 429.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.1071, allocations: 165.6 kB / 429.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/0.1073, allocations: 135.8 kB / 429.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.885e-05/0.1074, allocations: 24.86 kB / 429.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.1074, allocations: 3.984 kB / 429.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1074, allocations: 34.5 kB / 429.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.358e-05/0.1074, allocations: 3.938 kB / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002149/0.1076, allocations: 73.62 kB / 429.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.1077, allocations: 63.41 kB / 430 MB, free: 1.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.1078, allocations: 101.8 kB / 430.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1078, allocations: 29.7 kB / 430.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.482e-05/0.1078, allocations: 84.14 kB / 430.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.1079, allocations: 3.953 kB / 430.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.1079, allocations: 25.7 kB / 430.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.108, allocations: 314.8 kB / 430.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.842e-05/0.108, allocations: 7.938 kB / 430.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.618e-05/0.1081, allocations: 44.28 kB / 430.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.993e-05/0.1081, allocations: 44.23 kB / 430.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1081, allocations: 11.94 kB / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001116/0.1083, allocations: 69.58 kB / 430.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1083, allocations: 7.938 kB / 430.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1083, allocations: 4 kB / 430.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1083, allocations: 0 / 430.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.724e-05/0.1083, allocations: 11.92 kB / 430.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1084, allocations: 4 kB / 430.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.407e-05/0.1084, allocations: 0 / 430.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1084, allocations: 12.16 kB / 430.7 MB, free: 0.7656 MB / 350.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 9.057e-05/0.1085, allocations: 113.8 kB / 430.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1086, allocations: 61.62 kB / 430.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.1086, allocations: 8.062 kB / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1086, allocations: 3.984 kB / 430.9 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1086, allocations: 4.375 kB / 430.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1086, allocations: 0 / 430.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.1087, allocations: 157.7 kB / 431.1 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1087, allocations: 8 kB / 431.1 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-06/0.1087, allocations: 4 kB / 431.1 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1087, allocations: 7.922 kB / 431.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.1088, allocations: 0 / 431.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1088, allocations: 0 / 431.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1088, allocations: 0 / 431.1 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.1089, allocations: 89.08 kB / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.1089, allocations: 85.05 kB / 431.3 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.109, allocations: 4 kB / 431.3 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.71e-05/0.109, allocations: 7.984 kB / 431.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-06/0.109, allocations: 0 / 431.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.109, allocations: 4 kB / 431.3 MB, free: 112 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.1091, allocations: 83.28 kB / 431.3 MB, free: 28 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1091, allocations: 3.938 kB / 431.4 MB, free: 24 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001987/0.1093, allocations: 15.94 kB / 431.4 MB, free: 8 kB / 350.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.0005359/0.1098, allocations: 0.6519 MB / 432 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.1099, allocations: 35.92 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1099, allocations: 0 / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.82e-07/0.1099, allocations: 0 / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007066/0.1106, allocations: 0.7146 MB / 432.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1118, allocations: 1.234 MB / 434 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.1121, allocations: 0.6846 MB / 434.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.509e-05/0.1121, allocations: 4 kB / 434.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.1121, allocations: 11.44 kB / 434.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1121, allocations: 0 / 434.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.1366, allocations: 1.703 MB / 436.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/8.397, allocations: 5.25 kB / 436.4 MB, free: 10.93 MB / 366.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: 11.045240974985063] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.463553333189338 8.683206478 8.37198831 Calling exit ...