Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",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.0009593/0.0009593, allocations: 203.3 kB / 8.535 MB, free: 1.688 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.071/1.071, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008407/0.0008407, allocations: 97.28 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1555/0.1555, allocations: 45.14 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1767/0.3323, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07314/0.4054, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2216/0.6271, allocations: 86.08 MB / 0.5879 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001619/0.6273, allocations: 57.98 kB / 0.588 GB, free: 0.9062 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.003678/0.631, allocations: 1.702 MB / 0.5896 GB, free: 15.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.631, allocations: 12 kB / 0.5896 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.6311, allocations: 2.5 kB / 0.5896 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.793e-05/0.6312, allocations: 163.1 kB / 0.5898 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.6312, allocations: 2.656 kB / 0.5898 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-06/0.6312, allocations: 0 / 0.5898 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.148e-05/0.6312, allocations: 3.938 kB / 0.5898 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.95e-05/0.6313, allocations: 32.64 kB / 0.5898 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-06/0.6313, allocations: 0 / 0.5898 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.6313, allocations: 3.906 kB / 0.5898 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.6313, allocations: 0 / 0.5898 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.958e-05/0.6314, allocations: 126.2 kB / 0.59 GB, free: 14.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.731e-05/0.6314, allocations: 18.61 kB / 0.59 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.076e-05/0.6314, allocations: 4.859 kB / 0.59 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.871e-06/0.6315, allocations: 0 / 0.59 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.6315, allocations: 72.06 kB / 0.5901 GB, free: 14.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.6315, allocations: 0 / 0.5901 GB, free: 14.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001132/0.6316, allocations: 33.7 kB / 0.5901 GB, free: 14.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.6317, allocations: 77.11 kB / 0.5902 GB, free: 14.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.623e-05/0.6317, allocations: 85 kB / 0.5902 GB, free: 14.65 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.6317, allocations: 25.7 kB / 0.5903 GB, free: 14.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.676e-05/0.6317, allocations: 80.14 kB / 0.5903 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.6318, allocations: 7.734 kB / 0.5904 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-06/0.6318, allocations: 0.75 kB / 0.5904 GB, free: 14.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.6319, allocations: 310.8 kB / 0.5906 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.602e-06/0.6319, allocations: 8.031 kB / 0.5907 GB, free: 14.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.6319, allocations: 3.984 kB / 0.5907 GB, free: 14.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.314e-05/0.6319, allocations: 3.25 kB / 0.5907 GB, free: 14.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.6319, allocations: 0 / 0.5907 GB, free: 14.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.812e-05/0.632, allocations: 33.64 kB / 0.5907 GB, free: 14.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.727e-06/0.632, allocations: 8 kB / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.632, allocations: 3.938 kB / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.704e-06/0.632, allocations: 0 / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.632, allocations: 0 / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.632, allocations: 0.625 kB / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.007e-05/0.632, allocations: 4.094 kB / 0.5907 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.6321, allocations: 3.906 kB / 0.5907 GB, free: 14.15 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 8.733e-05/0.6322, allocations: 134.7 kB / 0.5908 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-06/0.6322, allocations: 0 / 0.5908 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.096e-05/0.6322, allocations: 6.953 kB / 0.5908 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.6322, allocations: 0 / 0.5908 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.6322, allocations: 4 kB / 0.5909 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.6322, allocations: 0 / 0.5909 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.377e-05/0.6323, allocations: 126.7 kB / 0.591 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.6323, allocations: 4 kB / 0.591 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.6323, allocations: 0 / 0.591 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.6323, allocations: 3.984 kB / 0.591 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.6323, allocations: 4 kB / 0.591 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.6323, allocations: 4 kB / 0.591 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6323, allocations: 0 / 0.591 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.904e-05/0.6324, allocations: 59.86 kB / 0.591 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001599/0.6325, allocations: 444.8 kB / 0.5915 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.434e-05/0.6326, allocations: 77.11 kB / 0.5915 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.6326, allocations: 4 kB / 0.5915 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-06/0.6326, allocations: 0 / 0.5915 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.6326, allocations: 3.906 kB / 0.5916 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.6326, allocations: 3.984 kB / 0.5916 GB, free: 13.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.593e-05/0.6327, allocations: 82.05 kB / 0.5916 GB, free: 13.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000735/0.6334, allocations: 34.92 kB / 0.5917 GB, free: 13.08 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.0003914/0.6338, allocations: 266.4 kB / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.252e-05/0.6339, allocations: 29.7 kB / 0.5919 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.6339, allocations: 0 / 0.5919 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.688e-05/0.6339, allocations: 29.7 kB / 0.592 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.052e-05/0.634, allocations: 2.391 kB / 0.592 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001007/0.6341, allocations: 51.56 kB / 0.592 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.6343, allocations: 0.6802 MB / 0.5927 GB, free: 12.01 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6343, allocations: 0 / 0.5927 GB, free: 12.01 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat