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.001913/0.001913, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001951/0.001951, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.507/1.507, allocations: 230.4 MB / 254.7 MB, free: 15.21 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.001856/0.001856, allocations: 67.84 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1063, allocations: 53.31 MB / 426.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002911/0.1092, allocations: 1.443 MB / 428.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000226/0.1094, allocations: 43.84 kB / 428.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.1095, allocations: 0 / 428.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.471e-05/0.1095, allocations: 11.88 kB / 428.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.573e-05/0.1096, allocations: 3.938 kB / 428.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.1098, allocations: 31.95 kB / 428.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.11, allocations: 39.92 kB / 428.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.682e-05/0.1101, allocations: 4 kB / 428.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.303e-05/0.1101, allocations: 15.92 kB / 428.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.1102, allocations: 27.91 kB / 428.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.1102, allocations: 4 kB / 428.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.1102, allocations: 4 kB / 428.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.921e-05/0.1102, allocations: 7.984 kB / 428.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.687e-05/0.1103, allocations: 15.88 kB / 428.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.1104, allocations: 43.75 kB / 428.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1104, allocations: 4 kB / 428.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1104, allocations: 0 / 428.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1104, allocations: 4 kB / 428.6 MB, free: 3.18 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.0005329/0.111, allocations: 351.4 kB / 428.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.111, allocations: 8.031 kB / 428.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.683e-05/0.1111, allocations: 42.69 kB / 429 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.1111, allocations: 4.891 kB / 429 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1113, allocations: 176.3 kB / 429.1 MB, free: 2.512 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.0001051/0.1114, allocations: 38.25 kB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.1114, allocations: 4.375 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.1118, allocations: 131.5 kB / 429.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.1118, allocations: 0 / 429.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.1118, allocations: 0 / 429.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.1118, allocations: 7.984 kB / 429.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.304e-05/0.1118, allocations: 19.98 kB / 429.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.112, allocations: 161.6 kB / 429.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.1123, allocations: 139.7 kB / 429.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.959e-05/0.1123, allocations: 16.86 kB / 429.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.1123, allocations: 4 kB / 429.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1124, allocations: 42.48 kB / 429.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.1124, allocations: 0 / 429.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002014/0.1126, allocations: 65.69 kB / 429.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.1126, allocations: 67.34 kB / 429.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.855e-05/0.1127, allocations: 105.8 kB / 429.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1127, allocations: 25.7 kB / 430 MB, free: 1.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.1128, allocations: 92.12 kB / 430 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.1128, allocations: 3.953 kB / 430.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.1128, allocations: 21.7 kB / 430.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.113, allocations: 318.8 kB / 430.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.554e-05/0.113, allocations: 7.938 kB / 430.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.947e-05/0.113, allocations: 40.72 kB / 430.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.102e-05/0.1131, allocations: 52.23 kB / 430.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1131, allocations: 0 / 430.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001071/0.1132, allocations: 81.52 kB / 430.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1132, allocations: 7.938 kB / 430.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1132, allocations: 0 / 430.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1132, allocations: 4 kB / 430.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.855e-05/0.1133, allocations: 7.984 kB / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1133, allocations: 0 / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.529e-05/0.1133, allocations: 4.156 kB / 430.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-06/0.1133, allocations: 7.938 kB / 430.6 MB, free: 0.8672 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.81e-05/0.1134, allocations: 125.7 kB / 430.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1135, allocations: 61.62 kB / 430.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.683e-05/0.1135, allocations: 7.969 kB / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1135, allocations: 0 / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1135, allocations: 0 / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1135, allocations: 0 / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.1137, allocations: 161.7 kB / 430.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1137, allocations: 0 / 430.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-06/0.1137, allocations: 4 kB / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.1137, allocations: 11.92 kB / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.1137, allocations: 0 / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1137, allocations: 0 / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1137, allocations: 0 / 431 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.1138, allocations: 89.02 kB / 431 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.596e-05/0.1139, allocations: 85.05 kB / 431.1 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.1139, allocations: 4 kB / 431.1 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.278e-05/0.114, allocations: 11.98 kB / 431.1 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-06/0.114, allocations: 0 / 431.1 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.114, allocations: 4 kB / 431.1 MB, free: 208 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.114, allocations: 87.28 kB / 431.2 MB, free: 120 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.114, allocations: 3.938 kB / 431.2 MB, free: 116 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001874/0.1142, allocations: 4 kB / 431.2 MB, free: 112 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.0005659/0.1148, allocations: 0.6607 MB / 431.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.1149, allocations: 36.11 kB / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.1149, allocations: 0 / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.81e-07/0.1149, allocations: 0 / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/0.1157, allocations: 0.7185 MB / 432.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.1168, allocations: 1.222 MB / 433.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.1171, allocations: 0.6885 MB / 434.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.094e-05/0.1171, allocations: 3.938 kB / 434.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.1171, allocations: 11.44 kB / 434.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1171, allocations: 0 / 434.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1414, allocations: 1.701 MB / 436.3 MB, free: 11.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/7.907, allocations: 7.859 kB / 436.3 MB, free: 11.02 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 & /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.483856191392988] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 7.978849750943482 8.208922745 7.890428567 Calling exit ...