Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",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.001215/0.001215, allocations: 189.1 kB / 7.803 MB, free: 2.488 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.447/1.447, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009533/0.0009533, allocations: 95.88 kB / 261.4 MB, free: 13.63 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.2377/0.2377, allocations: 43.49 MB / 352.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2434/0.4812, allocations: 64.97 MB / 417.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.8337, allocations: 58.83 MB / 476.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.971, allocations: 87.94 MB / 0.5514 GB, free: 10.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.9713, allocations: 67.14 kB / 0.5514 GB, free: 10.91 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.04059/1.012, allocations: 15.1 MB / 0.5662 GB, free: 11.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.012, allocations: 11.94 kB / 0.5662 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/1.012, allocations: 0 / 0.5662 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/1.012, allocations: 167.1 kB / 0.5663 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/1.012, allocations: 0 / 0.5663 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/1.012, allocations: 0 / 0.5663 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.481e-05/1.012, allocations: 0 / 0.5663 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.239e-05/1.012, allocations: 33.69 kB / 0.5664 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/1.012, allocations: 3.938 kB / 0.5664 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/1.012, allocations: 3.906 kB / 0.5664 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/1.012, allocations: 4 kB / 0.5664 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/1.013, allocations: 126.2 kB / 0.5665 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.617e-05/1.013, allocations: 14.67 kB / 0.5665 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.169e-05/1.013, allocations: 17.22 kB / 0.5665 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.248e-06/1.013, allocations: 0 / 0.5665 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.96e-05/1.013, allocations: 60.25 kB / 0.5666 GB, free: 11.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.343e-06/1.013, allocations: 4 kB / 0.5666 GB, free: 11.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001678/1.013, allocations: 29.7 kB / 0.5666 GB, free: 11.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/1.013, allocations: 81.05 kB / 0.5667 GB, free: 11.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.664e-05/1.013, allocations: 85 kB / 0.5668 GB, free: 10.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/1.013, allocations: 25.7 kB / 0.5668 GB, free: 10.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/1.013, allocations: 88.14 kB / 0.5669 GB, free: 10.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/1.013, allocations: 3.906 kB / 0.5669 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/1.013, allocations: 0 / 0.5669 GB, free: 10.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.013, allocations: 310.8 kB / 0.5672 GB, free: 10.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.196e-05/1.013, allocations: 8.016 kB / 0.5672 GB, free: 10.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-06/1.013, allocations: 0 / 0.5672 GB, free: 10.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.208e-05/1.013, allocations: 4 kB / 0.5672 GB, free: 10.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.013, allocations: 0 / 0.5672 GB, free: 10.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.712e-05/1.014, allocations: 29.7 kB / 0.5672 GB, free: 10.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/1.014, allocations: 4 kB / 0.5672 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.014, allocations: 0 / 0.5672 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/1.014, allocations: 0 / 0.5672 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/1.014, allocations: 0 / 0.5672 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/1.014, allocations: 8.094 kB / 0.5672 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/1.014, allocations: 7.906 kB / 0.5672 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/1.014, allocations: 0 / 0.5672 GB, free: 10.46 MB / 410.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 0.0001024/1.014, allocations: 135.5 kB / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/1.014, allocations: 4 kB / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.529e-05/1.014, allocations: 6.938 kB / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/1.014, allocations: 0 / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/1.014, allocations: 0 / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/1.014, allocations: 0 / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/1.014, allocations: 138.1 kB / 0.5675 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/1.014, allocations: 0 / 0.5675 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-06/1.014, allocations: 4 kB / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.014, allocations: 0 / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/1.014, allocations: 3.984 kB / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/1.014, allocations: 0 / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.014, allocations: 3.938 kB / 0.5675 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.374e-05/1.014, allocations: 57.05 kB / 0.5676 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000248/1.014, allocations: 465.5 kB / 0.568 GB, free: 9.574 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.52e-05/1.014, allocations: 77.11 kB / 0.5681 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/1.014, allocations: 0 / 0.5681 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.019e-05/1.014, allocations: 0 / 0.5681 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.944e-05/1.014, allocations: 3.906 kB / 0.5681 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/1.014, allocations: 4 kB / 0.5681 GB, free: 9.473 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.562e-05/1.014, allocations: 79.31 kB / 0.5682 GB, free: 9.395 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008198/1.015, allocations: 4 kB / 0.5682 GB, free: 9.391 MB / 410.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.0001311/1.015, allocations: 99.23 kB / 0.5683 GB, free: 9.285 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.05e-05/1.016, allocations: 25.7 kB / 0.5683 GB, free: 9.254 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/1.016, allocations: 4 kB / 0.5683 GB, free: 9.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.014e-05/1.016, allocations: 29.7 kB / 0.5683 GB, free: 9.215 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.906e-05/1.016, allocations: 4 kB / 0.5683 GB, free: 9.211 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001568/1.016, allocations: 48.14 kB / 0.5684 GB, free: 9.141 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/1.016, allocations: 0.6841 MB / 0.5691 GB, free: 8.43 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/1.016, allocations: 0 / 0.5691 GB, free: 8.43 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat