Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001216/0.001216, allocations: 204.5 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 92.02 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1215/0.1226, allocations: 56.91 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.2307, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2819/0.5126, allocations: 76.18 MB / 470.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.5129, allocations: 72.91 kB / 471 MB, free: 14.85 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.002486/0.5154, allocations: 0.899 MB / 471.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.5155, allocations: 8.938 kB / 471.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.5155, allocations: 6.812 kB / 471.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.5157, allocations: 177.7 kB / 472 MB, free: 13.98 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 0.0001139/0.5158, allocations: 39.34 kB / 472.1 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.5158, allocations: 4 kB / 472.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.672e-05/0.5159, allocations: 15.81 kB / 472.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.5161, allocations: 111.2 kB / 472.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.5161, allocations: 0 / 472.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.5161, allocations: 4 kB / 472.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.5162, allocations: 3.469 kB / 472.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.136e-05/0.5163, allocations: 140.4 kB / 472.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.5164, allocations: 134.4 kB / 472.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.5164, allocations: 20.48 kB / 472.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.5165, allocations: 4 kB / 472.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.187e-05/0.5165, allocations: 30.56 kB / 472.5 MB, free: 13.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.5165, allocations: 0 / 472.5 MB, free: 13.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001392/0.5166, allocations: 58.83 kB / 472.6 MB, free: 13.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.5167, allocations: 54.59 kB / 472.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.797e-05/0.5167, allocations: 100.7 kB / 472.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.618e-06/0.5168, allocations: 25.7 kB / 472.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.201e-05/0.5168, allocations: 84.14 kB / 472.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.5168, allocations: 10.56 kB / 472.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.5168, allocations: 0 / 472.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.961e-05/0.5168, allocations: 314.8 kB / 473.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.5169, allocations: 7.5 kB / 473.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.695e-05/0.5169, allocations: 39.27 kB / 473.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.105e-05/0.5169, allocations: 11.38 kB / 473.2 MB, free: 12.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.5169, allocations: 0 / 473.2 MB, free: 12.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.984e-05/0.517, allocations: 64.11 kB / 473.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.517, allocations: 4 kB / 473.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.517, allocations: 0 / 473.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.5171, allocations: 13.31 kB / 473.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.58e-05/0.5171, allocations: 7.188 kB / 473.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.5171, allocations: 3.828 kB / 473.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.5171, allocations: 4 kB / 473.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.5172, allocations: 0 / 473.3 MB, free: 12.68 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 5.134e-05/0.5172, allocations: 112.4 kB / 473.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.5173, allocations: 59.81 kB / 473.5 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.577e-05/0.5173, allocations: 4.062 kB / 473.5 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.5173, allocations: 4.078 kB / 473.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5173, allocations: 11.5 kB / 473.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.5173, allocations: 3.281 kB / 473.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.929e-05/0.5174, allocations: 135.6 kB / 473.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5174, allocations: 0 / 473.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-06/0.5174, allocations: 3.906 kB / 473.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.5174, allocations: 0 / 473.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.5174, allocations: 4.938 kB / 473.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5175, allocations: 0 / 473.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5175, allocations: 0 / 473.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.956e-05/0.5176, allocations: 86.89 kB / 473.7 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001412/0.5177, allocations: 466.7 kB / 474.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.5177, allocations: 77.11 kB / 474.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.5178, allocations: 4 kB / 474.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.867e-05/0.5178, allocations: 3.047 kB / 474.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-06/0.5178, allocations: 3.906 kB / 474.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.5178, allocations: 11.5 kB / 474.3 MB, free: 11.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.174e-05/0.5179, allocations: 80.16 kB / 474.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000818/0.5187, allocations: 8 kB / 474.4 MB, free: 11.59 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 8.712e-05/0.5188, allocations: 100.6 kB / 474.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.32e-05/0.5189, allocations: 29.77 kB / 474.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5189, allocations: 3.375 kB / 474.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.81e-07/0.5189, allocations: 320 / 474.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.5194, allocations: 0.7109 MB / 475.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.5196, allocations: 77.02 kB / 475.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.5197, allocations: 0.6981 MB / 476 MB, free: 9.945 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5197, allocations: 0 / 476 MB, free: 9.945 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1)