Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00108/0.00108, allocations: 203.8 kB / 8.536 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.159/1.159, allocations: 225.5 MB / 234.4 MB, free: 9.531 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009364/0.0009364, allocations: 98.91 kB / 286.3 MB, free: 5.848 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1668/0.1668, allocations: 45.15 MB / 383.3 MB, free: 4.879 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1728/0.3396, allocations: 69.36 MB / 452.7 MB, free: 48.22 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.4315, allocations: 63.24 MB / 0.5039 GB, free: 0.9102 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2482/0.6798, allocations: 89.76 MB / 0.5915 GB, free: 14 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.68, allocations: 76.64 kB / 0.5916 GB, free: 13.92 MB / 418.8 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.02029/0.7003, allocations: 7.58 MB / 0.599 GB, free: 6.273 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.7004, allocations: 12 kB / 0.599 GB, free: 6.262 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.7005, allocations: 47.44 kB / 0.599 GB, free: 6.215 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.7008, allocations: 274.3 kB / 0.5993 GB, free: 5.902 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.7009, allocations: 12 kB / 0.5993 GB, free: 5.891 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.7009, allocations: 20 kB / 0.5993 GB, free: 5.871 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003977/0.7013, allocations: 197.5 kB / 0.5995 GB, free: 5.68 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004342/0.7018, allocations: 274.2 kB / 0.5998 GB, free: 5.391 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.7018, allocations: 0 / 0.5998 GB, free: 5.391 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.7018, allocations: 4 kB / 0.5998 GB, free: 5.387 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.7018, allocations: 8 kB / 0.5998 GB, free: 5.379 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.7035, allocations: 1.216 MB / 0.601 GB, free: 4.09 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.7038, allocations: 166.5 kB / 0.6011 GB, free: 3.891 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.513e-05/0.7039, allocations: 59.56 kB / 0.6012 GB, free: 3.82 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.704, allocations: 0 / 0.6012 GB, free: 3.82 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.704, allocations: 38.56 kB / 0.6012 GB, free: 3.773 MB / 418.8 MB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.704, allocations: 0 / 0.6012 GB, free: 3.773 MB / 418.8 MB Notification: Performance of matching and sorting (n=15): time 0.0003336/0.7043, allocations: 125.3 kB / 0.6014 GB, free: 3.645 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.7044, allocations: 140.5 kB / 0.6015 GB, free: 3.477 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.7046, allocations: 243.4 kB / 0.6017 GB, free: 3.23 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.7047, allocations: 25.7 kB / 0.6017 GB, free: 3.199 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.734e-05/0.7048, allocations: 219.4 kB / 0.602 GB, free: 2.977 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.7048, allocations: 51.2 kB / 0.602 GB, free: 2.926 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.044e-05/0.7048, allocations: 0 / 0.602 GB, free: 2.926 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.7049, allocations: 338.8 kB / 0.6023 GB, free: 2.586 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.511e-05/0.705, allocations: 44.56 kB / 0.6024 GB, free: 2.539 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.7052, allocations: 132 kB / 0.6025 GB, free: 2.371 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.7053, allocations: 67.91 kB / 0.6026 GB, free: 2.305 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.7053, allocations: 4 kB / 0.6026 GB, free: 2.301 MB / 418.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003584/0.7057, allocations: 221.1 kB / 0.6028 GB, free: 2.078 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.7057, allocations: 4.25 kB / 0.6028 GB, free: 2.074 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.7057, allocations: 8 kB / 0.6028 GB, free: 2.066 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.7057, allocations: 4 kB / 0.6028 GB, free: 2.062 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.7061, allocations: 83.89 kB / 0.6029 GB, free: 1.98 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.7061, allocations: 7.938 kB / 0.6029 GB, free: 1.973 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.7064, allocations: 47.66 kB / 0.6029 GB, free: 1.926 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.7064, allocations: 8 kB / 0.6029 GB, free: 1.918 MB / 418.8 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.857e-05/0.7065, allocations: 120.2 kB / 0.603 GB, free: 1.797 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.7066, allocations: 31.66 kB / 0.6031 GB, free: 1.762 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.945e-05/0.7067, allocations: 29.52 kB / 0.6031 GB, free: 1.73 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.7067, allocations: 4 kB / 0.6031 GB, free: 1.727 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.7067, allocations: 0 / 0.6031 GB, free: 1.727 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.7067, allocations: 3.906 kB / 0.6031 GB, free: 1.723 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006409/0.7073, allocations: 0.53 MB / 0.6036 GB, free: 1.133 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.7074, allocations: 12.03 kB / 0.6036 GB, free: 1.121 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.7076, allocations: 43.97 kB / 0.6037 GB, free: 1.078 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.7076, allocations: 3.906 kB / 0.6037 GB, free: 1.074 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.7076, allocations: 4 kB / 0.6037 GB, free: 1.07 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.7076, allocations: 3.938 kB / 0.6037 GB, free: 1.066 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.7076, allocations: 11.98 kB / 0.6037 GB, free: 1.055 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002949/0.7079, allocations: 400.9 kB / 0.6041 GB, free: 0.5938 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003799/0.7083, allocations: 0.7725 MB / 0.6048 GB, free: 15.75 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.7084, allocations: 112.7 kB / 0.6049 GB, free: 15.62 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.7085, allocations: 4 kB / 0.605 GB, free: 15.62 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.7087, allocations: 19.98 kB / 0.605 GB, free: 15.6 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/0.7088, allocations: 11.98 kB / 0.605 GB, free: 15.59 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.7088, allocations: 8.141 kB / 0.605 GB, free: 15.58 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.0001564/0.709, allocations: 187 kB / 0.6052 GB, free: 15.4 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.0009767/0.7099, allocations: 71.69 kB / 0.6052 GB, free: 15.33 MB / 434.8 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.0001044/0.7101, allocations: 103.2 kB / 0.6053 GB, free: 15.22 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.0002472/0.7103, allocations: 131.8 kB / 0.6055 GB, free: 15.09 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7103, allocations: 3.938 kB / 0.6055 GB, free: 15.09 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.7104, allocations: 51.94 kB / 0.6055 GB, free: 15.04 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.7107, allocations: 20.58 kB / 0.6055 GB, free: 15.02 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.7114, allocations: 367 kB / 0.6059 GB, free: 14.62 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000394/0.7118, allocations: 0.8175 MB / 0.6067 GB, free: 13.77 MB / 434.8 MB Notification: Performance of SimCode: time 3.156e-06/0.7119, allocations: 0 / 0.6067 GB, free: 13.77 MB / 434.8 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1)