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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 221.3 MB / 235.5 MB, free: 2.945 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.001005/0.001004, allocations: 97.77 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.673e-05, allocations: 0 / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1176, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3422/0.4599, allocations: 87.46 MB / 481.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4602, allocations: 91.94 kB / 481.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07796/0.5382, allocations: 25.56 MB / 0.4956 GB, free: 6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5382, allocations: 4 kB / 0.4956 GB, free: 5.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.403e-05/0.5383, allocations: 16 kB / 0.4956 GB, free: 5.98 MB / 378.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.00462/0.5429, allocations: 1.096 MB / 0.4967 GB, free: 4.832 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/0.543, allocations: 12.03 kB / 0.4967 GB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002559/0.5432, allocations: 131.2 kB / 0.4968 GB, free: 4.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003735/0.547, allocations: 322.8 kB / 0.4971 GB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.5474, allocations: 246.8 kB / 0.4973 GB, free: 4.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.99e-05/0.5475, allocations: 62 kB / 0.4974 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.5478, allocations: 95.84 kB / 0.4975 GB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.5501, allocations: 0.8096 MB / 0.4983 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.162e-05/0.5502, allocations: 4.328 kB / 0.4983 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.5503, allocations: 35.95 kB / 0.4983 GB, free: 3.066 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.381e-05/0.5503, allocations: 20 kB / 0.4983 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.5525, allocations: 0.7029 MB / 0.499 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007116/0.5596, allocations: 2.977 MB / 0.5019 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.5613, allocations: 0.9616 MB / 0.5029 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.5619, allocations: 206.5 kB / 0.5031 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001777/0.5621, allocations: 97.64 kB / 0.5032 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.5622, allocations: 39.12 kB / 0.5032 GB, free: 13.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 3.557e-06/0.5622, allocations: 0 / 0.5032 GB, free: 13.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.008622/0.5708, allocations: 1.832 MB / 0.505 GB, free: 11.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.5709, allocations: 81.67 kB / 0.5051 GB, free: 11.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004408/0.5714, allocations: 271.2 kB / 0.5053 GB, free: 11.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.5714, allocations: 33.7 kB / 0.5054 GB, free: 11.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.5718, allocations: 358.7 kB / 0.5057 GB, free: 11.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.572, allocations: 208.9 kB / 0.5059 GB, free: 10.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.059e-05/0.5721, allocations: 16 kB / 0.5059 GB, free: 10.85 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.5723, allocations: 350.8 kB / 0.5063 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.573, allocations: 202 kB / 0.5064 GB, free: 10.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008829/0.5738, allocations: 436.5 kB / 0.5069 GB, free: 9.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.5746, allocations: 271.2 kB / 0.5071 GB, free: 9.504 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.5746, allocations: 4 kB / 0.5071 GB, free: 9.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002112/0.5768, allocations: 0.7542 MB / 0.5079 GB, free: 8.734 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.5768, allocations: 11.95 kB / 0.5079 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.5768, allocations: 8 kB / 0.5079 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003295/0.5772, allocations: 65.67 kB / 0.5079 GB, free: 8.645 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.5787, allocations: 215.7 kB / 0.5081 GB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.5816, allocations: 2.656 MB / 0.5107 GB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.5828, allocations: 75.91 kB / 0.5108 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.5829, allocations: 43.98 kB / 0.5109 GB, free: 5.387 MB / 394.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.0002346/0.5831, allocations: 152.7 kB / 0.511 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.5833, allocations: 39.48 kB / 0.511 GB, free: 5.191 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.5851, allocations: 0.6026 MB / 0.5116 GB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5852, allocations: 11.94 kB / 0.5116 GB, free: 4.566 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5852, allocations: 3.938 kB / 0.5116 GB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.5852, allocations: 7.938 kB / 0.5117 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.5883, allocations: 1.286 MB / 0.5129 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5883, allocations: 0 / 0.5129 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.5895, allocations: 143.8 kB / 0.513 GB, free: 3.062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.5897, allocations: 57.61 kB / 0.5131 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.5898, allocations: 19.92 kB / 0.5131 GB, free: 2.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002708/0.5925, allocations: 2.644 MB / 0.5157 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5926, allocations: 0 / 0.5157 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.5948, allocations: 0.8791 MB / 0.5166 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/0.5951, allocations: 168.5 kB / 0.5167 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.182e-05/0.5952, allocations: 12 kB / 0.5167 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008514/0.5961, allocations: 60.14 kB / 0.5168 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.5963, allocations: 52.48 kB / 0.5168 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/0.5964, allocations: 23.97 kB / 0.5169 GB, free: 14.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003685/0.5968, allocations: 198.2 kB / 0.517 GB, free: 14.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5968, allocations: 0 / 0.517 GB, free: 14.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001226/0.598, allocations: 188 kB / 0.5172 GB, free: 14.46 MB / 410.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.003156/0.6012, allocations: 1.513 MB / 0.5187 GB, free: 12.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.6032, allocations: 0.7753 MB / 0.5195 GB, free: 12.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6032, allocations: 0.5625 kB / 0.5195 GB, free: 12.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009012/0.6042, allocations: 492.4 kB / 0.5199 GB, free: 11.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.6046, allocations: 29.33 kB / 0.52 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.6082, allocations: 0.9877 MB / 0.5209 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006581/0.6089, allocations: 0.8925 MB / 0.5218 GB, free: 9.645 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007981/0.6097, allocations: 92.52 kB / 0.5219 GB, free: 9.551 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/0.6102, allocations: 231.3 kB / 0.5221 GB, free: 9.324 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6102, allocations: 0 / 0.5221 GB, free: 9.324 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.645, allocations: 10.77 MB / 0.5326 GB, free: 14.78 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.6453, allocations: 206.4 kB / 0.5328 GB, free: 14.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.365/3.011, allocations: 4 kB / 0.5328 GB, free: 14.55 MB / 426.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