Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",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 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 195.2 kB / 7.806 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009061/0.0009064, allocations: 96.39 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1789/0.1789, allocations: 43.48 MB / 352.8 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1852/0.3641, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.6512, allocations: 58.84 MB / 476.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.7625, allocations: 83.74 MB / 0.5472 GB, free: 15.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.7628, allocations: 63.97 kB / 0.5473 GB, free: 15.1 MB / 394.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.004051/0.7669, allocations: 1.46 MB / 0.5487 GB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.7669, allocations: 12 kB / 0.5487 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.767, allocations: 7.938 kB / 0.5488 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.158e-05/0.7671, allocations: 163.1 kB / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.7671, allocations: 0 / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.433e-06/0.7671, allocations: 0 / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.734e-05/0.7671, allocations: 0 / 0.5489 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.618e-05/0.7672, allocations: 36.2 kB / 0.5489 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.7672, allocations: 0 / 0.5489 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.7672, allocations: 3.906 kB / 0.5489 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.7672, allocations: 0 / 0.5489 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001088/0.7673, allocations: 130.2 kB / 0.5491 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.499e-05/0.7674, allocations: 18.61 kB / 0.5491 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.7674, allocations: 8.859 kB / 0.5491 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-06/0.7674, allocations: 0 / 0.5491 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.7675, allocations: 56.27 kB / 0.5492 GB, free: 13.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.7675, allocations: 0 / 0.5492 GB, free: 13.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.7676, allocations: 45.69 kB / 0.5492 GB, free: 13 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.7677, allocations: 77.11 kB / 0.5493 GB, free: 12.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.636e-05/0.7677, allocations: 85 kB / 0.5494 GB, free: 12.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.7678, allocations: 25.7 kB / 0.5494 GB, free: 12.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/0.7678, allocations: 80.14 kB / 0.5495 GB, free: 12.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.7678, allocations: 3.906 kB / 0.5495 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-06/0.7678, allocations: 0 / 0.5495 GB, free: 12.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7679, allocations: 318.8 kB / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.973e-06/0.768, allocations: 0 / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.768, allocations: 4.031 kB / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.975e-05/0.768, allocations: 4 kB / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.768, allocations: 0 / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.063e-05/0.7681, allocations: 33.69 kB / 0.5498 GB, free: 12.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.7681, allocations: 9.875 kB / 0.5498 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.7682, allocations: 0 / 0.5498 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.7682, allocations: 0 / 0.5498 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.7682, allocations: 4 kB / 0.5498 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.7682, allocations: 0 / 0.5498 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.171e-05/0.7682, allocations: 4.094 kB / 0.5498 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.7682, allocations: 3.906 kB / 0.5498 GB, free: 12.32 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.444e-05/0.7683, allocations: 136 kB / 0.55 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.7683, allocations: 4 kB / 0.55 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.573e-05/0.7684, allocations: 3 kB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.7684, allocations: 0 / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.7684, allocations: 0 / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7684, allocations: 3.984 kB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.425e-05/0.7685, allocations: 126.2 kB / 0.5501 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.7685, allocations: 11.94 kB / 0.5501 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.7685, allocations: 0 / 0.5501 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.7685, allocations: 3.984 kB / 0.5501 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.7685, allocations: 0 / 0.5501 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.7685, allocations: 4 kB / 0.5501 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7685, allocations: 0 / 0.5501 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.037e-05/0.7686, allocations: 65.03 kB / 0.5502 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001712/0.7688, allocations: 445.5 kB / 0.5506 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.562e-05/0.7688, allocations: 77.11 kB / 0.5507 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.7689, allocations: 4 kB / 0.5507 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-06/0.7689, allocations: 0 / 0.5507 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.7689, allocations: 7.906 kB / 0.5507 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-06/0.7689, allocations: 0 / 0.5507 GB, free: 11.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.291e-05/0.7689, allocations: 75.28 kB / 0.5507 GB, free: 11.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000868/0.7698, allocations: 31.95 kB / 0.5508 GB, free: 11.23 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.0003725/0.7702, allocations: 185.3 kB / 0.551 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.057e-05/0.7703, allocations: 29.7 kB / 0.551 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7703, allocations: 0 / 0.551 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.422e-05/0.7703, allocations: 37.62 kB / 0.551 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.762e-05/0.7704, allocations: 0 / 0.551 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001387/0.7705, allocations: 44.08 kB / 0.5511 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.7708, allocations: 0.688 MB / 0.5517 GB, free: 10.19 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7708, allocations: 4.125 kB / 0.5517 GB, free: 10.19 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat