Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",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 4.0.0+maint.om/package.mo): time 0.0009495/0.0009495, allocations: 179.6 kB / 8.518 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.119/1.119, allocations: 221.4 MB / 230.3 MB, free: 7.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008854/0.0008854, allocations: 95.55 kB / 281.2 MB, free: 5.543 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.154/0.154, allocations: 44.15 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.172/0.326, allocations: 68.02 MB / 444.1 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.4167, allocations: 61.91 MB / 0.4942 GB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2417/0.6585, allocations: 88.95 MB / 0.581 GB, free: 7.824 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.6587, allocations: 61.91 kB / 0.5811 GB, free: 7.77 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.03842/0.6972, allocations: 15.2 MB / 0.5959 GB, free: 8.523 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.6972, allocations: 16.69 kB / 0.596 GB, free: 8.508 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.6973, allocations: 3.906 kB / 0.596 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.6974, allocations: 159.1 kB / 0.5961 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.6974, allocations: 0 / 0.5961 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.6974, allocations: 0 / 0.5961 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.147e-05/0.6974, allocations: 3.938 kB / 0.5961 GB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.559e-05/0.6975, allocations: 37.64 kB / 0.5961 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.6975, allocations: 3.984 kB / 0.5962 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.6975, allocations: 3.938 kB / 0.5962 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.6975, allocations: 7.906 kB / 0.5962 GB, free: 8.246 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001106/0.6976, allocations: 126.2 kB / 0.5963 GB, free: 8.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.554e-05/0.6977, allocations: 22.61 kB / 0.5963 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.24e-05/0.6977, allocations: 4.859 kB / 0.5963 GB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.6977, allocations: 0 / 0.5963 GB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.6978, allocations: 56.27 kB / 0.5964 GB, free: 7.977 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.6978, allocations: 0 / 0.5964 GB, free: 7.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001047/0.6979, allocations: 37.7 kB / 0.5964 GB, free: 7.934 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.6979, allocations: 81.11 kB / 0.5965 GB, free: 7.836 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.627e-05/0.698, allocations: 85 kB / 0.5966 GB, free: 7.746 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.698, allocations: 25.7 kB / 0.5966 GB, free: 7.715 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.26e-05/0.698, allocations: 84.12 kB / 0.5967 GB, free: 7.629 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.698, allocations: 7.906 kB / 0.5967 GB, free: 7.621 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-06/0.698, allocations: 0 / 0.5967 GB, free: 7.621 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.6981, allocations: 310.8 kB / 0.597 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.563e-06/0.6982, allocations: 4.031 kB / 0.597 GB, free: 7.305 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.6982, allocations: 4 kB / 0.597 GB, free: 7.301 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.129e-05/0.6982, allocations: 0 / 0.597 GB, free: 7.301 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.6982, allocations: 0 / 0.597 GB, free: 7.301 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.7e-05/0.6982, allocations: 29.7 kB / 0.597 GB, free: 7.266 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.6983, allocations: 4.938 kB / 0.597 GB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.6983, allocations: 4 kB / 0.597 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.6983, allocations: 0 / 0.597 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.6983, allocations: 0 / 0.597 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.6983, allocations: 8.031 kB / 0.597 GB, free: 7.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.087e-05/0.6983, allocations: 0 / 0.597 GB, free: 7.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.6983, allocations: 3.984 kB / 0.597 GB, free: 7.246 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 7.349e-05/0.6984, allocations: 138.6 kB / 0.5972 GB, free: 7.098 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-06/0.6984, allocations: 0 / 0.5972 GB, free: 7.098 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.149e-05/0.6984, allocations: 6.953 kB / 0.5972 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.6984, allocations: 0 / 0.5972 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.6985, allocations: 0 / 0.5972 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.6985, allocations: 3.938 kB / 0.5972 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.721e-05/0.6985, allocations: 138.1 kB / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.6986, allocations: 0 / 0.5973 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.076e-05/0.6987, allocations: 57.14 kB / 0.5974 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001942/0.6989, allocations: 469.3 kB / 0.5978 GB, free: 6.359 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.6989, allocations: 77.11 kB / 0.5979 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.6989, allocations: 0 / 0.5979 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-06/0.699, allocations: 0 / 0.5979 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.699, allocations: 11.89 kB / 0.5979 GB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.699, allocations: 0 / 0.5979 GB, free: 6.254 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.435e-05/0.699, allocations: 79.31 kB / 0.598 GB, free: 6.176 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008426/0.6999, allocations: 8 kB / 0.598 GB, free: 6.168 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.0001015/0.7, allocations: 91.25 kB / 0.5981 GB, free: 6.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.383e-05/0.7, allocations: 29.7 kB / 0.5981 GB, free: 6.035 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.7, allocations: 0 / 0.5981 GB, free: 6.035 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.7001, allocations: 25.7 kB / 0.5981 GB, free: 6.004 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.339e-05/0.7001, allocations: 8 kB / 0.5981 GB, free: 5.996 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001129/0.7003, allocations: 56.12 kB / 0.5982 GB, free: 5.918 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.7005, allocations: 0.6802 MB / 0.5988 GB, free: 5.211 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7005, allocations: 0 / 0.5988 GB, free: 5.211 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat