Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",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.0009518/0.0009518, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.081/1.081, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008206/0.0008206, allocations: 88.08 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1537/0.1537, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1783/0.332, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0783/0.4103, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2467/0.657, allocations: 85.97 MB / 0.5878 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001526/0.6572, allocations: 62.53 kB / 0.5879 GB, free: 0.7852 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.008732/0.6659, allocations: 3.798 MB / 0.5916 GB, free: 13.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.666, allocations: 8 kB / 0.5916 GB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.666, allocations: 3.984 kB / 0.5916 GB, free: 13.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.6661, allocations: 163.1 kB / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.6661, allocations: 0 / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.6662, allocations: 4 kB / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.74e-05/0.6662, allocations: 0 / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.612e-05/0.6662, allocations: 36.86 kB / 0.5918 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.6663, allocations: 0 / 0.5918 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.6663, allocations: 0 / 0.5918 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.902e-06/0.6663, allocations: 4 kB / 0.5918 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001019/0.6664, allocations: 130.2 kB / 0.5919 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.109e-05/0.6664, allocations: 14.67 kB / 0.5919 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.264e-05/0.6664, allocations: 8.859 kB / 0.5919 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.6665, allocations: 0 / 0.5919 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.6665, allocations: 63.14 kB / 0.592 GB, free: 13.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.6665, allocations: 0 / 0.592 GB, free: 13.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001305/0.6666, allocations: 33.7 kB / 0.592 GB, free: 13.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.6667, allocations: 89 kB / 0.5921 GB, free: 13.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.885e-05/0.6668, allocations: 85 kB / 0.5922 GB, free: 13.06 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.6668, allocations: 25.7 kB / 0.5922 GB, free: 13.03 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.328e-05/0.6668, allocations: 87.39 kB / 0.5923 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.254e-05/0.6668, allocations: 0 / 0.5923 GB, free: 12.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.6668, allocations: 0 / 0.5923 GB, free: 12.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.6669, allocations: 319 kB / 0.5926 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.461e-06/0.6669, allocations: 0 / 0.5926 GB, free: 12.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.637e-06/0.667, allocations: 0 / 0.5926 GB, free: 12.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.802e-05/0.667, allocations: 7.938 kB / 0.5926 GB, free: 12.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.667, allocations: 3.938 kB / 0.5926 GB, free: 12.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.292e-05/0.6671, allocations: 33.69 kB / 0.5926 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.806e-06/0.6671, allocations: 4 kB / 0.5926 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.6671, allocations: 0 / 0.5926 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.147e-06/0.6671, allocations: 3.906 kB / 0.5927 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.6671, allocations: 4.094 kB / 0.5927 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.6671, allocations: 4 kB / 0.5927 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.032e-05/0.6671, allocations: 0 / 0.5927 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.6671, allocations: 0 / 0.5927 GB, free: 12.55 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 7.059e-05/0.6672, allocations: 131.4 kB / 0.5928 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-06/0.6672, allocations: 7.984 kB / 0.5928 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.042e-05/0.6672, allocations: 3 kB / 0.5928 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.6673, allocations: 3.906 kB / 0.5928 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.6673, allocations: 0 / 0.5928 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.6673, allocations: 3.938 kB / 0.5928 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.932e-05/0.6673, allocations: 130.2 kB / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.6673, allocations: 0 / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.6673, allocations: 0 / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.6674, allocations: 0 / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.6674, allocations: 3.984 kB / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.6674, allocations: 0 / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6674, allocations: 0 / 0.5929 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.26e-05/0.6675, allocations: 64.41 kB / 0.593 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001746/0.6676, allocations: 444.3 kB / 0.5934 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.732e-05/0.6677, allocations: 88.95 kB / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.6677, allocations: 3.984 kB / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.277e-06/0.6677, allocations: 0 / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.154e-05/0.6677, allocations: 0 / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.6677, allocations: 0 / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.401e-05/0.6678, allocations: 83.31 kB / 0.5936 GB, free: 11.51 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007285/0.6685, allocations: 19.94 kB / 0.5936 GB, free: 11.49 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.0003137/0.6688, allocations: 191.7 kB / 0.5938 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.129e-05/0.6689, allocations: 33.64 kB / 0.5938 GB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.6689, allocations: 0 / 0.5938 GB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.337e-05/0.6689, allocations: 29.7 kB / 0.5938 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.464e-05/0.669, allocations: 3.906 kB / 0.5939 GB, free: 11.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001087/0.6691, allocations: 51.7 kB / 0.5939 GB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.6693, allocations: 0.6841 MB / 0.5946 GB, free: 10.45 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6693, allocations: 0 / 0.5946 GB, free: 10.45 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat does not exist to compare? outputFormat=mat