Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.001752/0.001752, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009129/0.000913, allocations: 95.77 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1077/0.1086, allocations: 56.9 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.1995, allocations: 51.49 MB / 394.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2726/0.4721, allocations: 77.3 MB / 472 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.4724, allocations: 78.7 kB / 472.1 MB, free: 14.05 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.004415/0.4768, allocations: 1.705 MB / 473.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4769, allocations: 8 kB / 473.8 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.477, allocations: 27.14 kB / 473.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.4772, allocations: 192.8 kB / 474 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.4772, allocations: 0 / 474 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.4772, allocations: 4 kB / 474 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.871e-05/0.4773, allocations: 22.12 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.4775, allocations: 111.4 kB / 474.2 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.4775, allocations: 8 kB / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.4776, allocations: 3.422 kB / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.4776, allocations: 0 / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003178/0.4779, allocations: 342.3 kB / 474.5 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.4781, allocations: 144.7 kB / 474.7 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.4781, allocations: 33.58 kB / 474.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.4781, allocations: 7.125 kB / 474.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.433e-05/0.4782, allocations: 38.56 kB / 474.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.4782, allocations: 0 / 474.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001906/0.4784, allocations: 72.23 kB / 474.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.4784, allocations: 102.8 kB / 474.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.4785, allocations: 125.3 kB / 475 MB, free: 11.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.4785, allocations: 25.7 kB / 475 MB, free: 11.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.504e-05/0.4786, allocations: 91.81 kB / 475.1 MB, free: 11.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.4786, allocations: 6.906 kB / 475.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-06/0.4786, allocations: 0 / 475.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.4787, allocations: 324.9 kB / 475.5 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.813e-05/0.4787, allocations: 4 kB / 475.5 MB, free: 11.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.502e-05/0.4787, allocations: 47.92 kB / 475.5 MB, free: 11.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.097e-05/0.4788, allocations: 14.56 kB / 475.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.4788, allocations: 4 kB / 475.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.809e-05/0.4789, allocations: 67.53 kB / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.4789, allocations: 7.125 kB / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4789, allocations: 0 / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4789, allocations: 4 kB / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.457e-05/0.479, allocations: 19.34 kB / 475.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.479, allocations: 2.188 kB / 475.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.425e-05/0.4791, allocations: 7.422 kB / 475.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.4791, allocations: 7.906 kB / 475.6 MB, free: 11.04 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: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * 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.453e-05/0.4792, allocations: 108.9 kB / 475.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.407e-05/0.4793, allocations: 48.64 kB / 475.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.766e-05/0.4793, allocations: 11.31 kB / 475.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.4793, allocations: 2.312 kB / 475.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4793, allocations: 4 kB / 475.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4793, allocations: 4 kB / 475.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.4795, allocations: 151.5 kB / 476 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4795, allocations: 0 / 476 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-05/0.4796, allocations: 19.22 kB / 476 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4796, allocations: 0 / 476 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.4796, allocations: 0 / 476 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4796, allocations: 0 / 476 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4796, allocations: 4 kB / 476 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001275/0.4797, allocations: 269.6 kB / 476.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001449/0.4799, allocations: 0.6414 MB / 476.9 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.4799, allocations: 91.8 kB / 477 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.48, allocations: 0 / 477 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.4801, allocations: 7.375 kB / 477 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/0.4801, allocations: 4 kB / 477 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.4802, allocations: 7.125 kB / 477 MB, free: 9.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.219e-05/0.4802, allocations: 103.9 kB / 477.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008291/0.481, allocations: 13.97 kB / 477.1 MB, free: 9.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001128/0.4812, allocations: 106 kB / 477.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.695e-05/0.4813, allocations: 27.25 kB / 477.2 MB, free: 9.406 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4813, allocations: 4 kB / 477.2 MB, free: 9.402 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.888e-05/0.4813, allocations: 11.88 kB / 477.3 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.4816, allocations: 23.55 kB / 477.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002687/0.4819, allocations: 112.5 kB / 477.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.482, allocations: 0.7082 MB / 478.1 MB, free: 8.539 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/0.4821, allocations: 0 / 478.1 MB, free: 8.539 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1)