Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",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.001661/0.001661, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 225.5 MB / 234.4 MB, free: 15.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009144/0.0009144, allocations: 91.03 kB / 286.3 MB, free: 12.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1252/0.1262, allocations: 56.89 MB / 343.2 MB, free: 3.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.4891, allocations: 51.46 MB / 394.7 MB, free: 33.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.6294, allocations: 76.52 MB / 471.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/0.6299, allocations: 77.3 kB / 471.3 MB, free: 4.461 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.005024/0.6349, allocations: 1.175 MB / 472.5 MB, free: 3.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.635, allocations: 8 kB / 472.5 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.493e-05/0.635, allocations: 8.844 kB / 472.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.6353, allocations: 190.8 kB / 472.7 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.6354, allocations: 4 kB / 472.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.6354, allocations: 0 / 472.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001086/0.6355, allocations: 12 kB / 472.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.6358, allocations: 102.7 kB / 472.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.6358, allocations: 0 / 472.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.6359, allocations: 8 kB / 472.8 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.6359, allocations: 0 / 472.8 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004337/0.6363, allocations: 250.2 kB / 473 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002346/0.6366, allocations: 130.3 kB / 473.2 MB, free: 2.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.271e-05/0.6366, allocations: 21.78 kB / 473.2 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.6367, allocations: 0 / 473.2 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.6367, allocations: 38.5 kB / 473.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.6367, allocations: 1.875 kB / 473.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002304/0.637, allocations: 53.69 kB / 473.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.637, allocations: 81.14 kB / 473.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.6372, allocations: 123 kB / 473.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.6373, allocations: 25.7 kB / 473.5 MB, free: 2.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/0.6373, allocations: 88.12 kB / 473.6 MB, free: 1.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.6373, allocations: 3.906 kB / 473.6 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.6374, allocations: 3.938 kB / 473.6 MB, free: 1.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6375, allocations: 314.8 kB / 473.9 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.093e-05/0.6375, allocations: 4 kB / 473.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.868e-05/0.6376, allocations: 27.44 kB / 473.9 MB, free: 1.574 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.332e-05/0.6377, allocations: 11.98 kB / 474 MB, free: 1.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6377, allocations: 0 / 474 MB, free: 1.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001369/0.6378, allocations: 45.77 kB / 474 MB, free: 1.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6378, allocations: 11.91 kB / 474 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.6379, allocations: 4 kB / 474 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.6379, allocations: 3.984 kB / 474 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.796e-05/0.638, allocations: 12 kB / 474 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.638, allocations: 3.938 kB / 474 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.273e-05/0.6381, allocations: 4 kB / 474 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.6381, allocations: 4.75 kB / 474 MB, free: 1.469 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.52e-05/0.6382, allocations: 112.1 kB / 474.2 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.6384, allocations: 49.72 kB / 474.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.6384, allocations: 12.12 kB / 474.2 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.6384, allocations: 0 / 474.2 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6385, allocations: 3.906 kB / 474.2 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.6385, allocations: 3.984 kB / 474.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.6387, allocations: 138.2 kB / 474.4 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6387, allocations: 5.406 kB / 474.4 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.221e-05/0.6388, allocations: 11.98 kB / 474.4 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.6389, allocations: 4 kB / 474.4 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.6389, allocations: 0 / 474.4 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.6389, allocations: 3.938 kB / 474.4 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6389, allocations: 0 / 474.4 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001775/0.6391, allocations: 165.9 kB / 474.5 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003488/0.6394, allocations: 0.5414 MB / 475.1 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.705e-05/0.6395, allocations: 89 kB / 475.2 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.6396, allocations: 3.938 kB / 475.2 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.6397, allocations: 7.984 kB / 475.2 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.6398, allocations: 3.906 kB / 475.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.6398, allocations: 8 kB / 475.2 MB, free: 204 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001021/0.6399, allocations: 102.5 kB / 475.3 MB, free: 104 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001605/0.6415, allocations: 4 kB / 475.3 MB, free: 100 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001689/0.6417, allocations: 99.19 kB / 475.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.6418, allocations: 16 kB / 475.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6418, allocations: 3.938 kB / 475.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.083e-05/0.6419, allocations: 4.25 kB / 475.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.6423, allocations: 20.08 kB / 475.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003456/0.6426, allocations: 96.61 kB / 475.5 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.6431, allocations: 0.6993 MB / 476.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.6431, allocations: 0 / 476.2 MB, free: 15.1 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1)