Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.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.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",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.001245/0.001244, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 225.5 MB / 234.4 MB, free: 3.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009516/0.0009515, allocations: 93.58 kB / 286.3 MB, free: 5.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1185/0.1195, allocations: 56.89 MB / 343.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.2223, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2583/0.4807, allocations: 78.69 MB / 473.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.481, allocations: 66.02 kB / 473.5 MB, free: 13.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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01886/0.4998, allocations: 6.199 MB / 479.7 MB, free: 9.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4999, allocations: 8 kB / 479.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004589/0.5004, allocations: 71.5 kB / 479.7 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006128/0.501, allocations: 351.6 kB / 480.1 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.501, allocations: 11.91 kB / 480.1 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.447e-05/0.5011, allocations: 23.73 kB / 480.1 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002985/0.5014, allocations: 128.4 kB / 480.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.5018, allocations: 200.4 kB / 480.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.5018, allocations: 8 kB / 480.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.5018, allocations: 4.75 kB / 480.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.5018, allocations: 4 kB / 480.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.5031, allocations: 0.7188 MB / 481.2 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.5034, allocations: 136.6 kB / 481.3 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.5035, allocations: 66.98 kB / 481.4 MB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.432e-05/0.5036, allocations: 12.16 kB / 481.4 MB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.5039, allocations: 162.6 kB / 481.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 3.116e-06/0.5039, allocations: 3.938 kB / 481.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004929/0.5044, allocations: 211 kB / 481.7 MB, free: 7.469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.5044, allocations: 63.03 kB / 481.8 MB, free: 7.398 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.5047, allocations: 272 kB / 482.1 MB, free: 7.188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.5048, allocations: 25.7 kB / 482.1 MB, free: 7.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.5048, allocations: 150.7 kB / 482.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.5049, allocations: 77.78 kB / 482.3 MB, free: 6.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.5049, allocations: 4 kB / 482.3 MB, free: 6.953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.505, allocations: 352.5 kB / 482.7 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.5051, allocations: 65.5 kB / 482.7 MB, free: 6.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.5053, allocations: 201.3 kB / 482.9 MB, free: 6.352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.5055, allocations: 102.4 kB / 483 MB, free: 6.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5055, allocations: 0 / 483 MB, free: 6.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004929/0.506, allocations: 302.2 kB / 483.3 MB, free: 6.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.5061, allocations: 4 kB / 483.3 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.5061, allocations: 5.016 kB / 483.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.5061, allocations: 8 kB / 483.3 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.5064, allocations: 80.36 kB / 483.4 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.5064, allocations: 11.91 kB / 483.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.5068, allocations: 35.83 kB / 483.5 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.5068, allocations: 27.39 kB / 483.5 MB, free: 5.875 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001025/0.5069, allocations: 129.9 kB / 483.6 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.507, allocations: 31.62 kB / 483.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.5074, allocations: 227.8 kB / 483.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.5075, allocations: 0.9375 kB / 483.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5075, allocations: 3.938 kB / 483.9 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.5075, allocations: 7.984 kB / 483.9 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.5078, allocations: 317.7 kB / 484.2 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.5078, allocations: 0 / 484.2 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.5081, allocations: 47.95 kB / 484.2 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/0.5081, allocations: 4 kB / 484.2 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.5082, allocations: 7.188 kB / 484.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5082, allocations: 4 kB / 484.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5082, allocations: 3.984 kB / 484.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005234/0.5087, allocations: 343.6 kB / 484.6 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006439/0.5094, allocations: 0.8279 MB / 485.4 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.5095, allocations: 106.7 kB / 485.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.5096, allocations: 7.938 kB / 485.5 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.5098, allocations: 25.66 kB / 485.6 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.5099, allocations: 28.23 kB / 485.6 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.51, allocations: 15.86 kB / 485.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001731/0.5101, allocations: 208.6 kB / 485.8 MB, free: 3.852 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009364/0.5111, allocations: 71.41 kB / 485.9 MB, free: 3.785 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001916/0.5113, allocations: 122.7 kB / 486 MB, free: 3.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.5117, allocations: 231.4 kB / 486.2 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5117, allocations: 4 kB / 486.2 MB, free: 3.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.5119, allocations: 94.05 kB / 486.3 MB, free: 3.414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.5122, allocations: 43.78 kB / 486.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009862/0.5132, allocations: 451.4 kB / 486.8 MB, free: 2.973 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003278/0.5136, allocations: 0.8392 MB / 487.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5136, allocations: 0 / 487.6 MB, free: 2.109 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)