Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001864/0.001864, allocations: 177.8 kB / 8.132 MB, free: 0.8516 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 221.4 MB / 229.9 MB, free: 13.54 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009859/0.0009859, allocations: 93.61 kB / 280.8 MB, free: 10.49 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08823/0.08925, allocations: 55.84 MB / 336.6 MB, free: 2.66 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07494/0.1642, allocations: 50.42 MB / 387 MB, free: 196 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2029/0.3671, allocations: 87.42 MB / 474.5 MB, free: 10.12 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.3674, allocations: 88.45 kB / 474.6 MB, free: 10.03 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.08686/0.4543, allocations: 36.23 MB / 0.4988 GB, free: 5.578 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4543, allocations: 8 kB / 0.4988 GB, free: 5.57 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003554/0.4579, allocations: 0.4889 MB / 0.4993 GB, free: 5.082 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.4582, allocations: 305.5 kB / 0.4996 GB, free: 4.742 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-05/0.4583, allocations: 44 kB / 0.4996 GB, free: 4.699 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.4585, allocations: 76 kB / 0.4997 GB, free: 4.625 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002091/0.4606, allocations: 1.017 MB / 0.5007 GB, free: 3.605 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.4626, allocations: 1.037 MB / 0.5017 GB, free: 2.539 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.756e-05/0.4627, allocations: 7.906 kB / 0.5017 GB, free: 2.531 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.54e-05/0.4628, allocations: 2.156 kB / 0.5017 GB, free: 2.531 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.4628, allocations: 28 kB / 0.5017 GB, free: 2.504 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00689/0.4697, allocations: 4.079 MB / 0.5057 GB, free: 14.25 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007954/0.4705, allocations: 0.5128 MB / 0.5062 GB, free: 13.73 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000839/0.4714, allocations: 499.9 kB / 0.5067 GB, free: 13.24 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.4715, allocations: 102.1 kB / 0.5068 GB, free: 13.12 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.4716, allocations: 59.48 kB / 0.5069 GB, free: 13.05 MB / 402.8 MB Notification: Performance of pre-optimization done (n=122): time 3.366e-06/0.4716, allocations: 0 / 0.5069 GB, free: 13.05 MB / 402.8 MB Notification: Performance of matching and sorting (n=125): time 0.006479/0.478, allocations: 2.397 MB / 0.5092 GB, free: 10.6 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.4781, allocations: 94.05 kB / 0.5093 GB, free: 10.49 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003711/0.4785, allocations: 313.8 kB / 0.5096 GB, free: 10.18 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.4786, allocations: 25.7 kB / 0.5096 GB, free: 10.15 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.4788, allocations: 438.9 kB / 0.51 GB, free: 9.715 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002731/0.4791, allocations: 409.8 kB / 0.5104 GB, free: 9.309 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.4791, allocations: 0 / 0.5104 GB, free: 9.309 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4793, allocations: 366.8 kB / 0.5108 GB, free: 8.941 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006048/0.4799, allocations: 336 kB / 0.5111 GB, free: 8.613 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007413/0.4806, allocations: 0.5891 MB / 0.5117 GB, free: 7.918 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.4818, allocations: 454.2 kB / 0.5121 GB, free: 7.473 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4818, allocations: 0 / 0.5121 GB, free: 7.473 MB / 402.8 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002532/0.4843, allocations: 1.237 MB / 0.5133 GB, free: 6.223 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4843, allocations: 4 kB / 0.5133 GB, free: 6.219 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4844, allocations: 8.047 kB / 0.5133 GB, free: 6.211 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.4849, allocations: 198.7 kB / 0.5135 GB, free: 6.016 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.4864, allocations: 307.6 kB / 0.5138 GB, free: 5.715 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003874/0.4903, allocations: 3.733 MB / 0.5175 GB, free: 1.754 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.4913, allocations: 72.56 kB / 0.5175 GB, free: 1.684 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.4914, allocations: 51.98 kB / 0.5176 GB, free: 1.633 MB / 402.8 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 (146): * Single equations (assignments): 144 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000205/0.4916, allocations: 146.7 kB / 0.5177 GB, free: 1.484 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.4918, allocations: 63.25 kB / 0.5178 GB, free: 1.422 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002551/0.4943, allocations: 1.154 MB / 0.5189 GB, free: 260 kB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.4943, allocations: 12 kB / 0.5189 GB, free: 248 kB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.4943, allocations: 5.125 kB / 0.5189 GB, free: 244 kB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.4944, allocations: 3.984 kB / 0.5189 GB, free: 240 kB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.4984, allocations: 2.243 MB / 0.5211 GB, free: 13.92 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.4984, allocations: 0 / 0.5211 GB, free: 13.92 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.4996, allocations: 233.9 kB / 0.5213 GB, free: 13.69 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004337/0.5, allocations: 161.6 kB / 0.5215 GB, free: 13.53 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/0.5001, allocations: 15.89 kB / 0.5215 GB, free: 13.51 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003279/0.5034, allocations: 3.533 MB / 0.5249 GB, free: 9.75 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.5034, allocations: 8 kB / 0.525 GB, free: 9.742 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002821/0.5062, allocations: 1.654 MB / 0.5266 GB, free: 8.035 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003651/0.5099, allocations: 2.516 MB / 0.529 GB, free: 5.453 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.5103, allocations: 232.1 kB / 0.5293 GB, free: 5.207 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.5104, allocations: 4 kB / 0.5293 GB, free: 5.203 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008406/0.5112, allocations: 68.02 kB / 0.5293 GB, free: 5.137 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.5114, allocations: 78.47 kB / 0.5294 GB, free: 5.062 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.916e-05/0.5115, allocations: 35.98 kB / 0.5294 GB, free: 5.027 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.000246/0.5118, allocations: 228.6 kB / 0.5296 GB, free: 4.801 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001708/0.5135, allocations: 268 kB / 0.5299 GB, free: 4.539 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002936/0.5138, allocations: 172 kB / 0.5301 GB, free: 4.359 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.5157, allocations: 1.177 MB / 0.5312 GB, free: 3.168 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5157, allocations: 0 / 0.5312 GB, free: 3.168 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.5167, allocations: 0.7105 MB / 0.5319 GB, free: 2.438 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.5171, allocations: 21.2 kB / 0.5319 GB, free: 2.418 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.5206, allocations: 1.369 MB / 0.5333 GB, free: 1 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1048/0.6254, allocations: 1.122 MB / 0.5344 GB, free: 152.3 MB / 418.8 MB Notification: Performance of SimCode: time 7.61e-07/0.6254, allocations: 0 / 0.5344 GB, free: 152.3 MB / 418.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat