Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 187.2 kB / 8.134 MB, free: 2.207 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.174/1.174, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009764/0.0009764, allocations: 102.7 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08838/0.08938, allocations: 55.83 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.2643, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0866/0.3509, allocations: 86.83 MB / 473.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3512, allocations: 88.83 kB / 473.9 MB, free: 15.85 MB / 362.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.06327/0.4145, allocations: 26.16 MB / 0.4884 GB, free: 5.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.4145, allocations: 8 kB / 0.4884 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002361/0.4169, allocations: 346.7 kB / 0.4887 GB, free: 5.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.4171, allocations: 258.1 kB / 0.489 GB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.535e-05/0.4172, allocations: 32 kB / 0.489 GB, free: 4.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.4173, allocations: 51.91 kB / 0.489 GB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001309/0.4187, allocations: 0.6561 MB / 0.4897 GB, free: 3.988 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.4201, allocations: 0.6885 MB / 0.4904 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.4202, allocations: 0 / 0.4904 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.739e-05/0.4202, allocations: 0 / 0.4904 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.4203, allocations: 23.94 kB / 0.4904 GB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004853/0.4251, allocations: 2.85 MB / 0.4932 GB, free: 248 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.104/0.5292, allocations: 264.8 kB / 0.4934 GB, free: 125.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003304/0.5295, allocations: 185.5 kB / 0.4936 GB, free: 125.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.5297, allocations: 97.38 kB / 0.4937 GB, free: 125.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.5297, allocations: 34.19 kB / 0.4937 GB, free: 125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.166e-06/0.5297, allocations: 0 / 0.4937 GB, free: 125 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.004021/0.5337, allocations: 1.499 MB / 0.4952 GB, free: 124.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.5338, allocations: 85.19 kB / 0.4953 GB, free: 124.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.534, allocations: 260.5 kB / 0.4955 GB, free: 124.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.5341, allocations: 25.7 kB / 0.4955 GB, free: 124.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.5342, allocations: 357.1 kB / 0.4959 GB, free: 124.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.671e-05/0.5343, allocations: 202.1 kB / 0.4961 GB, free: 124.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/0.5343, allocations: 0 / 0.4961 GB, free: 124.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.485e-05/0.5344, allocations: 353.2 kB / 0.4964 GB, free: 123.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.5347, allocations: 189.8 kB / 0.4966 GB, free: 123.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.5351, allocations: 419.7 kB / 0.497 GB, free: 123.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005444/0.5356, allocations: 271.1 kB / 0.4972 GB, free: 123.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5356, allocations: 0 / 0.4972 GB, free: 123.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001251/0.5369, allocations: 0.7078 MB / 0.4979 GB, free: 123.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.5369, allocations: 8.75 kB / 0.4979 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.5369, allocations: 5.75 kB / 0.498 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002012/0.5371, allocations: 66.45 kB / 0.498 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.5381, allocations: 224.8 kB / 0.4982 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.5395, allocations: 2.53 MB / 0.5007 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007346/0.5402, allocations: 66.8 kB / 0.5008 GB, free: 121.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/0.5403, allocations: 39.61 kB / 0.5008 GB, free: 121.1 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.0001284/0.5404, allocations: 131.1 kB / 0.5009 GB, free: 121 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.5405, allocations: 39.19 kB / 0.501 GB, free: 121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.5416, allocations: 0.5953 MB / 0.5015 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.5417, allocations: 7.375 kB / 0.5016 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.5417, allocations: 3.719 kB / 0.5016 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.5417, allocations: 6.703 kB / 0.5016 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.5433, allocations: 1.19 MB / 0.5027 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5434, allocations: 0 / 0.5027 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/0.5441, allocations: 153.5 kB / 0.5029 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.5443, allocations: 57.97 kB / 0.5029 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.5444, allocations: 7.719 kB / 0.5029 GB, free: 120.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.5455, allocations: 2.529 MB / 0.5054 GB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.5456, allocations: 0.75 kB / 0.5054 GB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001299/0.5469, allocations: 0.8607 MB / 0.5062 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001647/0.5485, allocations: 1.503 MB / 0.5077 GB, free: 117.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.5487, allocations: 160.7 kB / 0.5079 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.293e-05/0.5488, allocations: 5 kB / 0.5079 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006134/0.5494, allocations: 60.8 kB / 0.5079 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5495, allocations: 39.34 kB / 0.508 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.5496, allocations: 25.53 kB / 0.508 GB, free: 117.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001418/0.5497, allocations: 192.7 kB / 0.5082 GB, free: 117.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001251/0.551, allocations: 175.3 kB / 0.5083 GB, free: 117.2 MB / 378.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.0002538/0.5512, allocations: 163.3 kB / 0.5085 GB, free: 117.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009457/0.5522, allocations: 0.7269 MB / 0.5092 GB, free: 116.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5522, allocations: 0 / 0.5092 GB, free: 116.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.5527, allocations: 469 kB / 0.5097 GB, free: 116.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.5529, allocations: 19.09 kB / 0.5097 GB, free: 116.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.5551, allocations: 0.874 MB / 0.5105 GB, free: 116.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005119/0.5556, allocations: 0.9603 MB / 0.5115 GB, free: 115.8 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5556, allocations: 0 / 0.5115 GB, free: 115.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat