Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",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 trunk/package.mo): time 0.001535/0.001535, allocations: 199.2 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009006/0.0009007, allocations: 91.41 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1897/0.1897, allocations: 45.14 MB / 383.4 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1933/0.383, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.4682, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2491/0.7174, allocations: 89.21 MB / 0.591 GB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.7176, allocations: 75.83 kB / 0.5911 GB, free: 13.54 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.008494/0.7262, allocations: 3.101 MB / 0.5941 GB, free: 10.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.7262, allocations: 15.94 kB / 0.5941 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.184e-05/0.7263, allocations: 15.72 kB / 0.5941 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.7265, allocations: 193.5 kB / 0.5943 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.7265, allocations: 7.906 kB / 0.5943 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.7265, allocations: 15.94 kB / 0.5943 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001666/0.7267, allocations: 75.81 kB / 0.5944 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.7269, allocations: 99.31 kB / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.7269, allocations: 0 / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.7269, allocations: 0 / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.7269, allocations: 7.984 kB / 0.5945 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007414/0.7277, allocations: 0.5242 MB / 0.595 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.7278, allocations: 55.97 kB / 0.5951 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.53e-05/0.7279, allocations: 11.92 kB / 0.5951 GB, free: 9.895 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.7279, allocations: 4 kB / 0.5951 GB, free: 9.891 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.7279, allocations: 37.92 kB / 0.5951 GB, free: 9.848 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.7279, allocations: 0 / 0.5951 GB, free: 9.848 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001618/0.7281, allocations: 60.28 kB / 0.5952 GB, free: 9.789 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.7281, allocations: 55.41 kB / 0.5952 GB, free: 9.723 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.571e-05/0.7282, allocations: 128.3 kB / 0.5953 GB, free: 9.605 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.7283, allocations: 25.7 kB / 0.5954 GB, free: 9.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.7283, allocations: 134.8 kB / 0.5955 GB, free: 9.445 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.7283, allocations: 18.8 kB / 0.5955 GB, free: 9.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/0.7284, allocations: 4 kB / 0.5955 GB, free: 9.426 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.7285, allocations: 314.7 kB / 0.5958 GB, free: 9.113 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.568e-05/0.7285, allocations: 18.88 kB / 0.5958 GB, free: 9.102 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.243e-05/0.7286, allocations: 47.91 kB / 0.5959 GB, free: 9.047 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.428e-05/0.7286, allocations: 15.88 kB / 0.5959 GB, free: 9.035 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.7286, allocations: 3.938 kB / 0.5959 GB, free: 9.031 MB / 394.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001452/0.7288, allocations: 94.77 kB / 0.596 GB, free: 8.945 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.7288, allocations: 4 kB / 0.596 GB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.7288, allocations: 7.844 kB / 0.596 GB, free: 8.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.7288, allocations: 4 kB / 0.596 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.729, allocations: 28.11 kB / 0.596 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.729, allocations: 4 kB / 0.596 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.7291, allocations: 15.92 kB / 0.5961 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.7291, allocations: 11.84 kB / 0.5961 GB, free: 8.871 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 5.817e-05/0.7292, allocations: 104.2 kB / 0.5962 GB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.7292, allocations: 7.906 kB / 0.5962 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.7293, allocations: 15.88 kB / 0.5962 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.7293, allocations: 0 / 0.5962 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.7293, allocations: 0 / 0.5962 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.7293, allocations: 0 / 0.5962 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.7295, allocations: 175.8 kB / 0.5964 GB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.7295, allocations: 0 / 0.5964 GB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.7296, allocations: 19.98 kB / 0.5964 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.7296, allocations: 4 kB / 0.5964 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.7296, allocations: 0 / 0.5964 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.7296, allocations: 7.922 kB / 0.5964 GB, free: 8.516 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7296, allocations: 3.984 kB / 0.5964 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000132/0.7298, allocations: 165.9 kB / 0.5965 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002082/0.73, allocations: 0.5253 MB / 0.5971 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.096e-05/0.73, allocations: 89 kB / 0.5971 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.7301, allocations: 0 / 0.5971 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.7302, allocations: 8 kB / 0.5972 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.7302, allocations: 7.891 kB / 0.5972 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.7302, allocations: 4 kB / 0.5972 GB, free: 7.688 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.945e-05/0.7303, allocations: 102 kB / 0.5973 GB, free: 7.598 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008401/0.7311, allocations: 31.84 kB / 0.5973 GB, free: 7.566 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0001132/0.7313, allocations: 103.2 kB / 0.5974 GB, free: 7.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.7314, allocations: 39.75 kB / 0.5974 GB, free: 7.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7314, allocations: 0 / 0.5974 GB, free: 7.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.865e-05/0.7315, allocations: 19.62 kB / 0.5974 GB, free: 7.414 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.7316, allocations: 7.672 kB / 0.5975 GB, free: 7.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003589/0.732, allocations: 141.7 kB / 0.5976 GB, free: 7.258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.7323, allocations: 0.7315 MB / 0.5983 GB, free: 6.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7323, allocations: 0 / 0.5983 GB, free: 6.5 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1)