Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",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.001556/0.001557, allocations: 202.7 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008598/0.0008599, allocations: 88.78 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1701/0.1701, allocations: 45.14 MB / 383.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.186/0.3562, allocations: 69.38 MB / 452.7 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.4455, allocations: 63.24 MB / 0.5039 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2515/0.6971, allocations: 90.61 MB / 0.5924 GB, free: 12.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.6973, allocations: 81.16 kB / 0.5924 GB, free: 12.52 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.01989/0.7172, allocations: 7.279 MB / 0.5995 GB, free: 6.422 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.7173, allocations: 12 kB / 0.5996 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.7174, allocations: 43.52 kB / 0.5996 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.7179, allocations: 276.4 kB / 0.5999 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.7179, allocations: 8 kB / 0.5999 GB, free: 6.062 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.7179, allocations: 12 kB / 0.5999 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003913/0.7183, allocations: 198.8 kB / 0.6001 GB, free: 5.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.7187, allocations: 189.9 kB / 0.6002 GB, free: 5.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.7187, allocations: 3.938 kB / 0.6002 GB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.7188, allocations: 0 / 0.6002 GB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.7188, allocations: 4 kB / 0.6003 GB, free: 5.777 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.7202, allocations: 0.8427 MB / 0.6011 GB, free: 5.074 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007058/0.7209, allocations: 300 kB / 0.6014 GB, free: 4.855 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.7211, allocations: 133.6 kB / 0.6015 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.7212, allocations: 3.984 kB / 0.6015 GB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.7212, allocations: 37.94 kB / 0.6015 GB, free: 4.719 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.7212, allocations: 0 / 0.6015 GB, free: 4.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.001899/0.7231, allocations: 473.8 kB / 0.602 GB, free: 4.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.7232, allocations: 55.31 kB / 0.602 GB, free: 4.254 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.7233, allocations: 194.9 kB / 0.6022 GB, free: 4.082 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.7234, allocations: 25.7 kB / 0.6022 GB, free: 4.051 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/0.7235, allocations: 142.7 kB / 0.6024 GB, free: 3.918 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.129e-05/0.7235, allocations: 101.3 kB / 0.6025 GB, free: 3.828 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.7236, allocations: 0 / 0.6025 GB, free: 3.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.7237, allocations: 337.4 kB / 0.6028 GB, free: 3.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.7238, allocations: 72.06 kB / 0.6029 GB, free: 3.461 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.724, allocations: 104.5 kB / 0.603 GB, free: 3.383 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.7242, allocations: 96.66 kB / 0.6031 GB, free: 3.324 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7242, allocations: 0 / 0.6031 GB, free: 3.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001808/0.726, allocations: 491.5 kB / 0.6035 GB, free: 2.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.726, allocations: 4 kB / 0.6035 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.726, allocations: 4 kB / 0.6035 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/0.7278, allocations: 325.2 kB / 0.6038 GB, free: 2.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.728, allocations: 27.97 kB / 0.6039 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006614/0.7346, allocations: 6.074 MB / 0.6098 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.7349, allocations: 23.73 kB / 0.6098 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.7349, allocations: 8 kB / 0.6098 GB, free: 12.58 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderRadialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderAxialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cuboid.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: genericFluxTube.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real 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 (15): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.7351, allocations: 118.3 kB / 0.6099 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.7351, allocations: 23.72 kB / 0.61 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.7369, allocations: 0.4936 MB / 0.6105 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.7369, allocations: 4 kB / 0.6105 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.7369, allocations: 192 / 0.6105 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.7369, allocations: 11.86 kB / 0.6105 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.7373, allocations: 306.5 kB / 0.6108 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.7373, allocations: 11.89 kB / 0.6108 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.7374, allocations: 31.34 kB / 0.6108 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.7391, allocations: 314.7 kB / 0.6111 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.7392, allocations: 4 kB / 0.6111 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006529/0.7457, allocations: 5.997 MB / 0.617 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7457, allocations: 12 kB / 0.617 GB, free: 5.48 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001763/0.7475, allocations: 0.5629 MB / 0.6175 GB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001895/0.7494, allocations: 0.9525 MB / 0.6185 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.261e-05/0.7495, allocations: 104.7 kB / 0.6186 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.7495, allocations: 3.938 kB / 0.6186 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.7498, allocations: 15.98 kB / 0.6186 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.7498, allocations: 12.23 kB / 0.6186 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.7499, allocations: 10.98 kB / 0.6186 GB, free: 3.926 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001313/0.75, allocations: 149.3 kB / 0.6187 GB, free: 3.809 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001173/0.7512, allocations: 111.3 kB / 0.6188 GB, free: 3.703 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 7 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,2 4,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001571/0.7513, allocations: 103.9 kB / 0.6189 GB, free: 3.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00093/0.7523, allocations: 0.6441 MB / 0.6196 GB, free: 2.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7523, allocations: 0 / 0.6196 GB, free: 2.984 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/0.7532, allocations: 0.5717 MB / 0.6201 GB, free: 2.422 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.7536, allocations: 18.03 kB / 0.6201 GB, free: 2.414 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.7548, allocations: 396.6 kB / 0.6205 GB, free: 2.047 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003924/0.7552, allocations: 0.7928 MB / 0.6213 GB, free: 1.227 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.7552, allocations: 4 kB / 0.6213 GB, free: 1.223 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1)