Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",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.001105/0.001105, allocations: 195.9 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.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009094/0.0009094, allocations: 89.45 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09773/0.09866, allocations: 56.91 MB / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09121/0.1899, allocations: 51.47 MB / 394.7 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2249/0.4149, allocations: 77.05 MB / 471.8 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.4151, allocations: 77.14 kB / 471.8 MB, free: 14.3 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.004158/0.4193, allocations: 1.645 MB / 473.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4193, allocations: 11.83 kB / 473.5 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.4195, allocations: 26.5 kB / 473.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.4197, allocations: 189.9 kB / 473.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-06/0.4197, allocations: 0 / 473.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.4197, allocations: 4 kB / 473.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.861e-05/0.4198, allocations: 18.86 kB / 473.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.42, allocations: 94.31 kB / 473.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.42, allocations: 0 / 473.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.42, allocations: 0 / 473.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.42, allocations: 4 kB / 473.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003084/0.4204, allocations: 253.9 kB / 474.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.512e-05/0.4204, allocations: 36.66 kB / 474.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.413e-05/0.4204, allocations: 17.72 kB / 474.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.4205, allocations: 0.75 kB / 474.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.4205, allocations: 37.12 kB / 474.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.4205, allocations: 4 kB / 474.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001476/0.4207, allocations: 41.61 kB / 474.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.4207, allocations: 87.83 kB / 474.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.622e-05/0.4208, allocations: 118.4 kB / 474.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.4208, allocations: 29.7 kB / 474.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.117e-05/0.4208, allocations: 86.28 kB / 474.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.4208, allocations: 10.66 kB / 474.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.4208, allocations: 0 / 474.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.4209, allocations: 326.2 kB / 474.8 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.4209, allocations: 0 / 474.8 MB, free: 11.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.46e-05/0.4209, allocations: 17.66 kB / 474.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.62e-05/0.4209, allocations: 4 kB / 474.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.421, allocations: 0 / 474.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.045e-05/0.421, allocations: 47.89 kB / 474.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.421, allocations: 12.12 kB / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.421, allocations: 0 / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.4211, allocations: 0 / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.814e-05/0.4211, allocations: 4 kB / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.4211, allocations: 4 kB / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.829e-05/0.4212, allocations: 3.422 kB / 474.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.4212, allocations: 4 kB / 474.9 MB, free: 11.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.86e-05/0.4212, allocations: 108.9 kB / 475 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.4213, allocations: 41.05 kB / 475.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.4213, allocations: 10.7 kB / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.4213, allocations: 4 kB / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.4214, allocations: 0 / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4214, allocations: 0 / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.4215, allocations: 148 kB / 475.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4215, allocations: 0 / 475.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.693e-05/0.4215, allocations: 11.42 kB / 475.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.4216, allocations: 11.92 kB / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.4216, allocations: 0 / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.4216, allocations: 0 / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4216, allocations: 7.125 kB / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.146e-05/0.4217, allocations: 156.5 kB / 475.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001156/0.4218, allocations: 0.5359 MB / 476 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.4218, allocations: 94.12 kB / 476.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.4219, allocations: 0 / 476.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.59e-05/0.422, allocations: 7.422 kB / 476.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.723e-05/0.422, allocations: 4.031 kB / 476.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.422, allocations: 0 / 476.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.485e-05/0.4221, allocations: 104.3 kB / 476.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007837/0.4228, allocations: 11.94 kB / 476.2 MB, free: 10.41 MB / 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 8.291e-05/0.4229, allocations: 102.5 kB / 476.3 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.493e-05/0.423, allocations: 8.688 kB / 476.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.423, allocations: 4 kB / 476.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.423, allocations: 8.062 kB / 476.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.4232, allocations: 16.75 kB / 476.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002163/0.4235, allocations: 93.47 kB / 476.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.4236, allocations: 0.7017 MB / 477.1 MB, free: 9.461 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4236, allocations: 0 / 477.1 MB, free: 9.461 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1)