Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001516/0.001516, allocations: 185.8 kB / 8.136 MB, free: 2.188 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.247/1.247, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.000966/0.000966, allocations: 95.97 kB / 280.8 MB, free: 1.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08824/0.08924, allocations: 55.83 MB / 336.6 MB, free: 9.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.2589, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08472/0.3436, allocations: 86.73 MB / 473.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.3439, allocations: 88.88 kB / 473.8 MB, free: 15.89 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.06214/0.4061, allocations: 26.05 MB / 499.9 MB, free: 5.531 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.4061, allocations: 8 kB / 499.9 MB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/0.4085, allocations: 350.7 kB / 0.4885 GB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.4087, allocations: 258.7 kB / 0.4887 GB, free: 4.883 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.4088, allocations: 28 kB / 0.4888 GB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.4089, allocations: 52 kB / 0.4888 GB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001257/0.4101, allocations: 0.6483 MB / 0.4895 GB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.4114, allocations: 0.6846 MB / 0.4901 GB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.4114, allocations: 7.906 kB / 0.4901 GB, free: 3.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.4115, allocations: 3.984 kB / 0.4901 GB, free: 3.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.4115, allocations: 20 kB / 0.4902 GB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004344/0.4158, allocations: 2.841 MB / 0.4929 GB, free: 428 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.4163, allocations: 269.2 kB / 0.4932 GB, free: 152 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1272/0.5435, allocations: 184.5 kB / 0.4934 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.5437, allocations: 96.48 kB / 0.4935 GB, free: 68.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.5437, allocations: 38.59 kB / 0.4935 GB, free: 68.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.076e-06/0.5437, allocations: 3.812 kB / 0.4935 GB, free: 68.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.004363/0.5481, allocations: 1.484 MB / 0.4949 GB, free: 67.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.5481, allocations: 90.73 kB / 0.495 GB, free: 67.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.5484, allocations: 246.7 kB / 0.4953 GB, free: 67.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.5484, allocations: 25.7 kB / 0.4953 GB, free: 67.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.5485, allocations: 351.8 kB / 0.4956 GB, free: 67.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.5487, allocations: 205 kB / 0.4958 GB, free: 67.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.5487, allocations: 3.281 kB / 0.4958 GB, free: 67.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.73e-05/0.5488, allocations: 349.4 kB / 0.4962 GB, free: 66.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.5491, allocations: 194.1 kB / 0.4963 GB, free: 66.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.5495, allocations: 416 kB / 0.4967 GB, free: 66.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/0.5501, allocations: 268.6 kB / 0.497 GB, free: 66.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.5501, allocations: 3.062 kB / 0.497 GB, free: 66.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001309/0.5514, allocations: 0.7047 MB / 0.4977 GB, free: 66.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.5514, allocations: 6.938 kB / 0.4977 GB, free: 66.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.5515, allocations: 7.938 kB / 0.4977 GB, free: 66.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.5517, allocations: 62.88 kB / 0.4978 GB, free: 66.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.5527, allocations: 219.1 kB / 0.498 GB, free: 66.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.5541, allocations: 2.54 MB / 0.5005 GB, free: 64.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007774/0.5549, allocations: 65.45 kB / 0.5005 GB, free: 64.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.634e-05/0.555, allocations: 43.94 kB / 0.5006 GB, free: 64.2 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.0001326/0.5551, allocations: 133.1 kB / 0.5007 GB, free: 64.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.189e-05/0.5552, allocations: 37.38 kB / 0.5007 GB, free: 64.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.5564, allocations: 0.5877 MB / 0.5013 GB, free: 63.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.5564, allocations: 7.406 kB / 0.5013 GB, free: 63.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.5564, allocations: 0 / 0.5013 GB, free: 63.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.5564, allocations: 4.969 kB / 0.5013 GB, free: 63.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.5582, allocations: 1.192 MB / 0.5025 GB, free: 63.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5582, allocations: 0 / 0.5025 GB, free: 63.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007922/0.559, allocations: 150.2 kB / 0.5026 GB, free: 63.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001531/0.5591, allocations: 61.58 kB / 0.5027 GB, free: 63.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.47e-05/0.5592, allocations: 6.891 kB / 0.5027 GB, free: 63.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.5604, allocations: 2.522 MB / 0.5051 GB, free: 61.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5604, allocations: 0 / 0.5051 GB, free: 61.24 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001308/0.5617, allocations: 0.8635 MB / 0.506 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001692/0.5634, allocations: 1.502 MB / 0.5074 GB, free: 60.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.5636, allocations: 162.9 kB / 0.5076 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.635e-05/0.5637, allocations: 0.9375 kB / 0.5076 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006435/0.5644, allocations: 58.7 kB / 0.5077 GB, free: 60.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/0.5645, allocations: 38.88 kB / 0.5077 GB, free: 60.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/0.5645, allocations: 26.52 kB / 0.5077 GB, free: 60.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001288/0.5646, allocations: 180.2 kB / 0.5079 GB, free: 60.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001257/0.5659, allocations: 173.9 kB / 0.5081 GB, free: 60.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_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.0002268/0.5661, allocations: 165.3 kB / 0.5082 GB, free: 60.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000947/0.5671, allocations: 0.7253 MB / 0.5089 GB, free: 59.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5671, allocations: 4.125 kB / 0.5089 GB, free: 59.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000489/0.5676, allocations: 459.8 kB / 0.5094 GB, free: 59.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.5679, allocations: 25.25 kB / 0.5094 GB, free: 59.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.5701, allocations: 0.863 MB / 0.5102 GB, free: 59.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.5706, allocations: 0.9646 MB / 0.5112 GB, free: 58.78 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5706, allocations: 0 / 0.5112 GB, free: 58.78 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat