Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",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.0009864/0.0009864, allocations: 195.4 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.169/1.169, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008243/0.0008243, allocations: 89.5 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1574/0.1574, allocations: 45.14 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.185/0.3425, allocations: 69.36 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08151/0.424, allocations: 63.24 MB / 0.5039 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2431/0.6672, allocations: 86.32 MB / 0.5881 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000157/0.6674, allocations: 59.17 kB / 0.5882 GB, free: 0.5273 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.005599/0.673, allocations: 2.345 MB / 0.5905 GB, free: 14.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.673, allocations: 8 kB / 0.5905 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.352e-05/0.673, allocations: 1 kB / 0.5905 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.711e-05/0.6731, allocations: 159.1 kB / 0.5907 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.6731, allocations: 0 / 0.5907 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.6731, allocations: 0.75 kB / 0.5907 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.145e-05/0.6732, allocations: 8 kB / 0.5907 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.199e-05/0.6732, allocations: 34.17 kB / 0.5907 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-06/0.6732, allocations: 0 / 0.5907 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.6733, allocations: 7.844 kB / 0.5907 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.6733, allocations: 0 / 0.5907 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.153e-05/0.6734, allocations: 130.2 kB / 0.5908 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.592e-05/0.6734, allocations: 17.58 kB / 0.5908 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.147e-05/0.6734, allocations: 4.859 kB / 0.5909 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-06/0.6734, allocations: 96 / 0.5909 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.6735, allocations: 64.27 kB / 0.5909 GB, free: 13.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.6735, allocations: 3.938 kB / 0.5909 GB, free: 13.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001214/0.6736, allocations: 37.62 kB / 0.591 GB, free: 13.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.6736, allocations: 77.11 kB / 0.591 GB, free: 13.81 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.69e-05/0.6737, allocations: 88.69 kB / 0.5911 GB, free: 13.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.6737, allocations: 25.7 kB / 0.5911 GB, free: 13.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.948e-05/0.6737, allocations: 84.14 kB / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.244e-05/0.6737, allocations: 3.906 kB / 0.5912 GB, free: 13.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-06/0.6737, allocations: 4.031 kB / 0.5912 GB, free: 13.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.987e-05/0.6738, allocations: 310.8 kB / 0.5915 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-06/0.6738, allocations: 0 / 0.5915 GB, free: 13.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.697e-06/0.6738, allocations: 0 / 0.5915 GB, free: 13.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.038e-05/0.6739, allocations: 7.984 kB / 0.5915 GB, free: 13.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.6739, allocations: 0 / 0.5915 GB, free: 13.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.95e-05/0.6739, allocations: 29.7 kB / 0.5916 GB, free: 13.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.6739, allocations: 8 kB / 0.5916 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.674, allocations: 4.094 kB / 0.5916 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.674, allocations: 0 / 0.5916 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.674, allocations: 3.938 kB / 0.5916 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.674, allocations: 3.984 kB / 0.5916 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-06/0.674, allocations: 0 / 0.5916 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.674, allocations: 3.906 kB / 0.5916 GB, free: 13.22 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 6.197e-05/0.6741, allocations: 138.6 kB / 0.5917 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-06/0.6741, allocations: 0 / 0.5917 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.798e-06/0.6741, allocations: 6.953 kB / 0.5917 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.6741, allocations: 4 kB / 0.5917 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.6741, allocations: 0 / 0.5917 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.6741, allocations: 4 kB / 0.5917 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.179e-05/0.6742, allocations: 130.1 kB / 0.5918 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.6742, allocations: 0 / 0.5918 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.6742, allocations: 0 / 0.5918 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.6742, allocations: 0 / 0.5918 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.6742, allocations: 3.984 kB / 0.5919 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.6742, allocations: 0 / 0.5919 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6742, allocations: 4 kB / 0.5919 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.49e-05/0.6743, allocations: 67.84 kB / 0.5919 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001732/0.6745, allocations: 447.6 kB / 0.5923 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.6746, allocations: 81.05 kB / 0.5924 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.6746, allocations: 0 / 0.5924 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.675e-06/0.6746, allocations: 0 / 0.5924 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.1e-05/0.6746, allocations: 7.969 kB / 0.5924 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.6746, allocations: 8 kB / 0.5924 GB, free: 12.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.052e-05/0.6746, allocations: 75.28 kB / 0.5925 GB, free: 12.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007579/0.6754, allocations: 47.42 kB / 0.5926 GB, free: 12.12 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0004158/0.6758, allocations: 256.3 kB / 0.5928 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.194e-05/0.6759, allocations: 36.89 kB / 0.5928 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.6759, allocations: 0 / 0.5928 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.772e-05/0.6759, allocations: 29.7 kB / 0.5929 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.787e-05/0.676, allocations: 4.125 kB / 0.5929 GB, free: 11.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001074/0.6761, allocations: 42.12 kB / 0.5929 GB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.6763, allocations: 0.6841 MB / 0.5936 GB, free: 11.05 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6764, allocations: 0 / 0.5936 GB, free: 11.05 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat