Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 184 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000903/0.0009031, allocations: 93.42 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.104/0.105, allocations: 55.83 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.3207, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08258/0.4033, allocations: 75.37 MB / 462.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4036, allocations: 81.89 kB / 462.5 MB, free: 11.32 MB / 346.7 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.00245/0.406, allocations: 0.887 MB / 463.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.4061, allocations: 8 kB / 463.4 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.4061, allocations: 9.562 kB / 463.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.4063, allocations: 185.5 kB / 463.5 MB, free: 10.17 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.775e-05/0.4064, allocations: 29.7 kB / 463.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.4064, allocations: 4 kB / 463.6 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.993e-05/0.4065, allocations: 23.27 kB / 463.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/0.4067, allocations: 111.9 kB / 463.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.4067, allocations: 3.938 kB / 463.7 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.4067, allocations: 0.9688 kB / 463.7 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.4068, allocations: 0 / 463.7 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001125/0.4069, allocations: 143.3 kB / 463.9 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.407, allocations: 132.6 kB / 464 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.4071, allocations: 25.58 kB / 464 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.4071, allocations: 0 / 464 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.4071, allocations: 31.41 kB / 464 MB, free: 9.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.4071, allocations: 4 kB / 464 MB, free: 9.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001313/0.4073, allocations: 53.73 kB / 464.1 MB, free: 9.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.4073, allocations: 59.31 kB / 464.2 MB, free: 9.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.419e-05/0.4074, allocations: 96.98 kB / 464.2 MB, free: 9.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.4074, allocations: 25.7 kB / 464.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.352e-05/0.4074, allocations: 84.14 kB / 464.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.4074, allocations: 0 / 464.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.4075, allocations: 0 / 464.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.783e-05/0.4075, allocations: 322.8 kB / 464.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.4076, allocations: 8 kB / 464.7 MB, free: 8.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.293e-05/0.4076, allocations: 44.22 kB / 464.7 MB, free: 8.852 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.04e-05/0.4076, allocations: 4 kB / 464.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4076, allocations: 4 kB / 464.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.233e-05/0.4077, allocations: 61.62 kB / 464.8 MB, free: 8.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.4077, allocations: 4 kB / 464.8 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4078, allocations: 2.062 kB / 464.8 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.4078, allocations: 5.031 kB / 464.8 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.293e-05/0.4078, allocations: 15.84 kB / 464.8 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.4078, allocations: 3.984 kB / 464.8 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.407e-05/0.4079, allocations: 4 kB / 464.8 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-06/0.4079, allocations: 8.156 kB / 464.8 MB, free: 8.738 MB / 346.7 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 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.479e-05/0.408, allocations: 104.9 kB / 464.9 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.408, allocations: 61.53 kB / 465 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.4081, allocations: 4.062 kB / 465 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4081, allocations: 4 kB / 465 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.4081, allocations: 3.938 kB / 465 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.4081, allocations: 0 / 465 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.268e-05/0.4082, allocations: 139.3 kB / 465.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4082, allocations: 0 / 465.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-06/0.4082, allocations: 4 kB / 465.1 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.4082, allocations: 5.188 kB / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.4082, allocations: 0 / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.4082, allocations: 0 / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4082, allocations: 7.984 kB / 465.2 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.606e-05/0.4083, allocations: 77.03 kB / 465.2 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000221/0.4086, allocations: 473.9 kB / 465.7 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.4086, allocations: 77.11 kB / 465.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.4086, allocations: 4.75 kB / 465.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.48e-05/0.4087, allocations: 0 / 465.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.196e-06/0.4087, allocations: 5.312 kB / 465.8 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/0.4087, allocations: 7.984 kB / 465.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.677e-05/0.4088, allocations: 84.56 kB / 465.9 MB, free: 7.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007418/0.4095, allocations: 8 kB / 465.9 MB, free: 7.582 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001087/0.4096, allocations: 99.25 kB / 466 MB, free: 7.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.228e-05/0.4097, allocations: 31.94 kB / 466 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4097, allocations: 0 / 466 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.72e-07/0.4097, allocations: 0 / 466 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005687/0.4103, allocations: 0.7073 MB / 466.7 MB, free: 6.715 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.4105, allocations: 83.77 kB / 466.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.4108, allocations: 0.6974 MB / 467.5 MB, free: 5.887 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4108, allocations: 0 / 467.5 MB, free: 5.887 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1)