Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",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.001643/0.001643, allocations: 207.5 kB / 8.543 MB, free: 2.613 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 225.5 MB / 234.4 MB, free: 3.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009708/0.0009709, allocations: 97.06 kB / 286.4 MB, free: 0.5117 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1063/0.1073, allocations: 56.89 MB / 343.2 MB, free: 7.613 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.31, allocations: 51.47 MB / 394.7 MB, free: 37.02 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07821/0.3883, allocations: 77.1 MB / 471.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.3885, allocations: 71.95 kB / 471.9 MB, free: 7.738 MB / 350.1 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.006159/0.3947, allocations: 2.247 MB / 474.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.3947, allocations: 8 kB / 474.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3949, allocations: 19.89 kB / 474.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.3951, allocations: 194.8 kB / 474.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.3951, allocations: 3.938 kB / 474.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.3951, allocations: 4 kB / 474.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.228e-05/0.3952, allocations: 23.98 kB / 474.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.3954, allocations: 97.91 kB / 474.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.3954, allocations: 0 / 474.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3954, allocations: 4 kB / 474.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3954, allocations: 0 / 474.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003037/0.3957, allocations: 255.1 kB / 474.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.62e-05/0.3958, allocations: 63.8 kB / 474.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.3958, allocations: 27.92 kB / 474.8 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.3959, allocations: 3.984 kB / 474.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.3959, allocations: 38.5 kB / 474.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 2.215e-06/0.3959, allocations: 3.984 kB / 474.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001645/0.3961, allocations: 57.59 kB / 474.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.3961, allocations: 106.8 kB / 475 MB, free: 4.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.759e-05/0.3962, allocations: 123.9 kB / 475.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.3962, allocations: 29.7 kB / 475.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.553e-05/0.3963, allocations: 100.1 kB / 475.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.09e-05/0.3963, allocations: 0 / 475.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.3963, allocations: 0 / 475.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3964, allocations: 318.8 kB / 475.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.3964, allocations: 0 / 475.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.631e-05/0.3965, allocations: 35.36 kB / 475.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.057e-05/0.3965, allocations: 12 kB / 475.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3965, allocations: 0 / 475.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.507e-05/0.3966, allocations: 57.53 kB / 475.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/0.3966, allocations: 4 kB / 475.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.3966, allocations: 0 / 475.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.3966, allocations: 4 kB / 475.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.953e-05/0.3967, allocations: 11.94 kB / 475.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.3967, allocations: 4.125 kB / 475.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.772e-05/0.3968, allocations: 11.89 kB / 475.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.3968, allocations: 8 kB / 475.7 MB, free: 3.648 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * 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 5.941e-05/0.3969, allocations: 101 kB / 475.8 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-05/0.3969, allocations: 49.55 kB / 475.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.397, allocations: 15.73 kB / 475.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.397, allocations: 0 / 475.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.397, allocations: 4.062 kB / 475.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.397, allocations: 7.906 kB / 475.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.3971, allocations: 142.2 kB / 476 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3971, allocations: 0 / 476 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.622e-05/0.3972, allocations: 11.98 kB / 476 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3972, allocations: 4 kB / 476.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.3972, allocations: 4 kB / 476.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3972, allocations: 0 / 476.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3973, allocations: 4 kB / 476.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001557/0.3974, allocations: 188.5 kB / 476.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002237/0.3976, allocations: 0.5595 MB / 476.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.3977, allocations: 97 kB / 476.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.3977, allocations: 0 / 476.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.17e-05/0.3978, allocations: 4 kB / 476.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.346e-05/0.3979, allocations: 0 / 476.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.3979, allocations: 11.98 kB / 476.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.896e-05/0.3979, allocations: 107.2 kB / 477 MB, free: 2.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007955/0.3987, allocations: 15.84 kB / 477 MB, free: 2.199 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001031/0.3988, allocations: 99.19 kB / 477.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.73e-05/0.3989, allocations: 16 kB / 477.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.3989, allocations: 0 / 477.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-05/0.399, allocations: 8 kB / 477.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.3992, allocations: 28.36 kB / 477.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002484/0.3994, allocations: 109.3 kB / 477.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.3997, allocations: 0.7036 MB / 478 MB, free: 1.168 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3997, allocations: 0 / 478 MB, free: 1.168 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1)