Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",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.001/0.001, allocations: 185.2 kB / 8.52 MB, free: 1.824 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.282/1.282, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0008754/0.0008754, allocations: 80.73 kB / 281.2 MB, free: 5.453 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.1681/0.1681, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2084/0.3765, allocations: 68.04 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.4966, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.267/0.7637, allocations: 88.79 MB / 0.5809 GB, free: 7.941 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.7639, allocations: 83.78 kB / 0.581 GB, free: 7.863 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.01177/0.7757, allocations: 4.595 MB / 0.5855 GB, free: 3.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.7758, allocations: 15.92 kB / 0.5855 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.7758, allocations: 35.62 kB / 0.5855 GB, free: 3.188 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.776, allocations: 197.7 kB / 0.5857 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.661e-05/0.7761, allocations: 24.56 kB / 0.5857 GB, free: 2.934 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.7762, allocations: 16 kB / 0.5857 GB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003773/0.7766, allocations: 189.3 kB / 0.5859 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.777, allocations: 220.8 kB / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.777, allocations: 0 / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.777, allocations: 0 / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.777, allocations: 8 kB / 0.5861 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.7788, allocations: 0.9641 MB / 0.5871 GB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.708e-05/0.7788, allocations: 38.42 kB / 0.5871 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.194e-05/0.7789, allocations: 20.92 kB / 0.5871 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.7789, allocations: 0 / 0.5871 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.779, allocations: 42.55 kB / 0.5872 GB, free: 1.371 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.779, allocations: 0 / 0.5872 GB, free: 1.371 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001666/0.7791, allocations: 53.52 kB / 0.5872 GB, free: 1.312 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.7792, allocations: 51.41 kB / 0.5873 GB, free: 1.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.7794, allocations: 226 kB / 0.5875 GB, free: 1.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.7794, allocations: 26.83 kB / 0.5875 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.7796, allocations: 234.7 kB / 0.5877 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.7796, allocations: 11.84 kB / 0.5878 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.7796, allocations: 4.031 kB / 0.5878 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.7797, allocations: 322.8 kB / 0.5881 GB, free: 424 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.687e-05/0.7798, allocations: 56 kB / 0.5881 GB, free: 368 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.78, allocations: 82.72 kB / 0.5882 GB, free: 284 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.7801, allocations: 72.47 kB / 0.5883 GB, free: 212 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.7801, allocations: 0 / 0.5883 GB, free: 212 kB / 394.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003072/0.7804, allocations: 189.5 kB / 0.5884 GB, free: 16 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.7804, allocations: 12.03 kB / 0.5885 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.7804, allocations: 0 / 0.5885 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.7805, allocations: 3.938 kB / 0.5885 GB, free: 0 / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.7808, allocations: 67.8 kB / 0.5885 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.7808, allocations: 0 / 0.5885 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.7811, allocations: 31.67 kB / 0.5886 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.7811, allocations: 4 kB / 0.5886 GB, free: 15.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.865e-05/0.7812, allocations: 112.9 kB / 0.5887 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.7812, allocations: 11.81 kB / 0.5887 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.126e-05/0.7813, allocations: 24.64 kB / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.7813, allocations: 3.906 kB / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.7813, allocations: 0 / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.7813, allocations: 0 / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005317/0.7818, allocations: 467.9 kB / 0.5892 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.7818, allocations: 12.06 kB / 0.5892 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-05/0.7819, allocations: 0 / 0.5892 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.7819, allocations: 4 kB / 0.5892 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.7819, allocations: 0 / 0.5892 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.7819, allocations: 0 / 0.5892 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7819, allocations: 0 / 0.5892 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001289/0.782, allocations: 107.5 kB / 0.5893 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002215/0.7823, allocations: 483.8 kB / 0.5897 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.062e-05/0.7824, allocations: 96.91 kB / 0.5898 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.7824, allocations: 4 kB / 0.5898 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.7825, allocations: 4.062 kB / 0.5898 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.7825, allocations: 4 kB / 0.5898 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.7825, allocations: 0 / 0.5898 GB, free: 14.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001587/0.7827, allocations: 172.6 kB / 0.59 GB, free: 14.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008307/0.7835, allocations: 71.59 kB / 0.5901 GB, free: 14.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 8.607e-05/0.7836, allocations: 91.69 kB / 0.5902 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001971/0.7838, allocations: 107.9 kB / 0.5903 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.7839, allocations: 4.062 kB / 0.5903 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.256e-05/0.7839, allocations: 11.94 kB / 0.5903 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.7841, allocations: 17.39 kB / 0.5903 GB, free: 13.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.7846, allocations: 241 kB / 0.5905 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/0.7849, allocations: 0.7783 MB / 0.5913 GB, free: 12.91 MB / 410.7 MB Notification: Performance of SimCode: time 2.9e-07/0.785, allocations: 0 / 0.5913 GB, free: 12.91 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat does not exist to compare? outputFormat=mat