Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.001057/0.001057, allocations: 202.3 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009409/0.0009409, allocations: 87.02 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09459/0.09557, allocations: 56.91 MB / 343.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.1798, allocations: 51.47 MB / 394.7 MB, free: 5.027 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2094/0.3893, allocations: 87.71 MB / 482.4 MB, free: 5.211 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.3895, allocations: 89.5 kB / 482.5 MB, free: 5.164 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.06246/0.452, allocations: 27.7 MB / 0.4983 GB, free: 14.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.452, allocations: 8 kB / 0.4983 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002312/0.4543, allocations: 346.7 kB / 0.4986 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.4546, allocations: 242.2 kB / 0.4988 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.4546, allocations: 32 kB / 0.4989 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.4547, allocations: 55.91 kB / 0.4989 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001286/0.456, allocations: 0.66 MB / 0.4995 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.4573, allocations: 0.6849 MB / 0.5002 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.4573, allocations: 0 / 0.5002 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.307e-05/0.4574, allocations: 1.219 kB / 0.5002 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.4574, allocations: 20 kB / 0.5002 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004499/0.4619, allocations: 2.941 MB / 0.5031 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.4623, allocations: 262.9 kB / 0.5034 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.4626, allocations: 186.3 kB / 0.5035 GB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.4628, allocations: 182.7 kB / 0.5037 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.4628, allocations: 39 kB / 0.5037 GB, free: 8.848 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.733e-06/0.4629, allocations: 0 / 0.5037 GB, free: 8.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.004332/0.4672, allocations: 1.491 MB / 0.5052 GB, free: 7.301 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.4672, allocations: 85.61 kB / 0.5053 GB, free: 7.199 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.4675, allocations: 259.2 kB / 0.5055 GB, free: 6.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.4676, allocations: 29.69 kB / 0.5056 GB, free: 6.898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.4678, allocations: 358.5 kB / 0.5059 GB, free: 6.539 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.4679, allocations: 199.1 kB / 0.5061 GB, free: 6.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.468, allocations: 0 / 0.5061 GB, free: 6.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4681, allocations: 350.8 kB / 0.5064 GB, free: 5.992 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.4685, allocations: 186 kB / 0.5066 GB, free: 5.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004891/0.469, allocations: 430.6 kB / 0.507 GB, free: 5.277 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.4696, allocations: 263.1 kB / 0.5073 GB, free: 5.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.4696, allocations: 7.984 kB / 0.5073 GB, free: 5.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001428/0.471, allocations: 0.7119 MB / 0.508 GB, free: 4.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.4711, allocations: 4 kB / 0.508 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.4711, allocations: 8 kB / 0.508 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.4713, allocations: 70.09 kB / 0.508 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.4724, allocations: 215.7 kB / 0.5083 GB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.4743, allocations: 2.54 MB / 0.5107 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/0.4751, allocations: 64.02 kB / 0.5108 GB, free: 1.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.582e-05/0.4752, allocations: 39.89 kB / 0.5108 GB, free: 1.125 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.4753, allocations: 128.7 kB / 0.511 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.4754, allocations: 39.53 kB / 0.511 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.4768, allocations: 0.5884 MB / 0.5116 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4768, allocations: 7.906 kB / 0.5116 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4768, allocations: 4 kB / 0.5116 GB, free: 344 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4768, allocations: 3.984 kB / 0.5116 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.4788, allocations: 1.199 MB / 0.5128 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4788, allocations: 4.562 kB / 0.5128 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008186/0.4796, allocations: 147.8 kB / 0.5129 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.4798, allocations: 65.61 kB / 0.513 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.4798, allocations: 0 / 0.513 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.4816, allocations: 2.528 MB / 0.5154 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4816, allocations: 0 / 0.5154 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001482/0.4831, allocations: 0.8674 MB / 0.5163 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002001/0.4851, allocations: 1.505 MB / 0.5177 GB, free: 9.688 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.4853, allocations: 160.6 kB / 0.5179 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.593e-05/0.4854, allocations: 7.906 kB / 0.5179 GB, free: 9.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.4861, allocations: 60 kB / 0.518 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4862, allocations: 36.44 kB / 0.518 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/0.4863, allocations: 19.98 kB / 0.518 GB, free: 9.391 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000185/0.4864, allocations: 195.1 kB / 0.5182 GB, free: 9.203 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001309/0.4878, allocations: 187.9 kB / 0.5184 GB, free: 9.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002917/0.4881, allocations: 170.1 kB / 0.5185 GB, free: 8.848 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.4892, allocations: 0.7327 MB / 0.5193 GB, free: 8.094 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4892, allocations: 0 / 0.5193 GB, free: 8.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005813/0.4898, allocations: 453.5 kB / 0.5197 GB, free: 7.633 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.49, allocations: 17.34 kB / 0.5197 GB, free: 7.617 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.4924, allocations: 0.8826 MB / 0.5206 GB, free: 6.715 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007003/0.4931, allocations: 0.9683 MB / 0.5215 GB, free: 5.719 MB / 394.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4931, allocations: 1.969 kB / 0.5215 GB, free: 5.719 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat