Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.001342/0.001342, allocations: 178.2 kB / 8.519 MB, free: 1.828 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.204/1.204, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.0008755, allocations: 89.69 kB / 281.2 MB, free: 5.441 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.1641/0.1641, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1867/0.3508, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.4514, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2638/0.7152, allocations: 88.66 MB / 0.5808 GB, free: 8.051 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.7155, allocations: 67.97 kB / 0.5808 GB, free: 7.984 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0201/0.7356, allocations: 7.449 MB / 0.5881 GB, free: 496 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.7356, allocations: 15.94 kB / 0.5881 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.544e-05/0.7357, allocations: 39.53 kB / 0.5882 GB, free: 440 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.7361, allocations: 272.3 kB / 0.5884 GB, free: 120 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.7361, allocations: 15.91 kB / 0.5884 GB, free: 104 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.7361, allocations: 16 kB / 0.5884 GB, free: 88 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004053/0.7366, allocations: 189.5 kB / 0.5886 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004473/0.737, allocations: 278.3 kB / 0.5889 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.737, allocations: 4 kB / 0.5889 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.7371, allocations: 0 / 0.5889 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.7371, allocations: 8 kB / 0.5889 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.7388, allocations: 1.212 MB / 0.5901 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.7391, allocations: 154.6 kB / 0.5902 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.635e-05/0.7392, allocations: 55.62 kB / 0.5903 GB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.7393, allocations: 4 kB / 0.5903 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.7393, allocations: 38.5 kB / 0.5903 GB, free: 14.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.7393, allocations: 4 kB / 0.5903 GB, free: 14 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003495/0.7397, allocations: 125.3 kB / 0.5905 GB, free: 13.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.7397, allocations: 136.5 kB / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.74, allocations: 227.3 kB / 0.5908 GB, free: 13.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.74, allocations: 29.7 kB / 0.5908 GB, free: 13.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.7401, allocations: 223.3 kB / 0.591 GB, free: 13.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.7402, allocations: 51.23 kB / 0.5911 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.7402, allocations: 0 / 0.5911 GB, free: 13.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.7403, allocations: 338.8 kB / 0.5914 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.821e-05/0.7404, allocations: 44.56 kB / 0.5915 GB, free: 12.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.7406, allocations: 132 kB / 0.5916 GB, free: 12.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.7407, allocations: 71.91 kB / 0.5916 GB, free: 12.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7407, allocations: 0 / 0.5916 GB, free: 12.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000385/0.7411, allocations: 229.2 kB / 0.5919 GB, free: 12.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.7411, allocations: 8.031 kB / 0.5919 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.7411, allocations: 4 kB / 0.5919 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.7411, allocations: 4 kB / 0.5919 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.7415, allocations: 84.08 kB / 0.592 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.465e-06/0.7416, allocations: 8 kB / 0.592 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.7418, allocations: 51.59 kB / 0.592 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.7419, allocations: 12 kB / 0.592 GB, free: 12.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.501e-05/0.742, allocations: 112.8 kB / 0.5921 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.7421, allocations: 27.72 kB / 0.5922 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.7421, allocations: 29.42 kB / 0.5922 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7421, allocations: 4 kB / 0.5922 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.7422, allocations: 0 / 0.5922 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.7422, allocations: 0 / 0.5922 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.7428, allocations: 0.5374 MB / 0.5927 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.7429, allocations: 4 kB / 0.5927 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.7431, allocations: 43.91 kB / 0.5928 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.7431, allocations: 4 kB / 0.5928 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.7431, allocations: 4 kB / 0.5928 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.7431, allocations: 8 kB / 0.5928 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.7431, allocations: 4 kB / 0.5928 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003137/0.7435, allocations: 397 kB / 0.5932 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003942/0.7439, allocations: 0.7777 MB / 0.5939 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.7439, allocations: 100.8 kB / 0.594 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.744, allocations: 3.984 kB / 0.594 GB, free: 9.879 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.7443, allocations: 31.86 kB / 0.5941 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.7443, allocations: 11.89 kB / 0.5941 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.7443, allocations: 8 kB / 0.5941 GB, free: 9.828 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001472/0.7445, allocations: 179.1 kB / 0.5942 GB, free: 9.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009971/0.7455, allocations: 67.69 kB / 0.5943 GB, free: 9.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 0.0001295/0.7456, allocations: 103.2 kB / 0.5944 GB, free: 9.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002576/0.7459, allocations: 139.7 kB / 0.5945 GB, free: 9.344 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.7459, allocations: 0 / 0.5945 GB, free: 9.344 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.724e-05/0.746, allocations: 47.94 kB / 0.5946 GB, free: 9.297 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.7463, allocations: 12.98 kB / 0.5946 GB, free: 9.281 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007376/0.747, allocations: 371 kB / 0.595 GB, free: 8.879 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.7475, allocations: 0.8086 MB / 0.5957 GB, free: 8.047 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.7475, allocations: 0 / 0.5957 GB, free: 8.047 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat