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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009316/0.0009316, allocations: 176.4 kB / 8.348 MB, free: 0.7266 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.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009589/0.0009588, allocations: 87.59 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.853e-05/1.856e-05, allocations: 7.984 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 50.4 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3915/0.5035, allocations: 86.91 MB / 474.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5038, allocations: 91.94 kB / 474.6 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0605/0.5644, allocations: 25.37 MB / 499.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.5644, allocations: 0 / 499.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.5644, allocations: 15.94 kB / 499.9 MB, free: 14 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.003466/0.5679, allocations: 1.108 MB / 0.4893 GB, free: 12.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.568, allocations: 12.03 kB / 0.4893 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00223/0.5702, allocations: 326.8 kB / 0.4896 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.5706, allocations: 254.1 kB / 0.4899 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.5707, allocations: 32 kB / 0.4899 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.5709, allocations: 48 kB / 0.49 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00134/0.5722, allocations: 0.66 MB / 0.4906 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.5735, allocations: 0.6888 MB / 0.4913 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.5735, allocations: 0 / 0.4913 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.605e-05/0.5736, allocations: 3.953 kB / 0.4913 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.5736, allocations: 24 kB / 0.4913 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.5784, allocations: 2.846 MB / 0.4941 GB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00099/0.5794, allocations: 0.9402 MB / 0.495 GB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.5797, allocations: 186.5 kB / 0.4952 GB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.5799, allocations: 93.66 kB / 0.4953 GB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.5799, allocations: 43.06 kB / 0.4953 GB, free: 6.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.276e-06/0.5799, allocations: 0 / 0.4953 GB, free: 6.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.004616/0.5845, allocations: 1.698 MB / 0.497 GB, free: 4.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.5846, allocations: 85.67 kB / 0.497 GB, free: 4.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.585, allocations: 262 kB / 0.4973 GB, free: 4.203 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.585, allocations: 25.7 kB / 0.4973 GB, free: 4.172 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.5852, allocations: 362.6 kB / 0.4977 GB, free: 3.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.5854, allocations: 205 kB / 0.4979 GB, free: 3.605 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.5855, allocations: 0 / 0.4979 GB, free: 3.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.5856, allocations: 355.1 kB / 0.4982 GB, free: 3.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/0.5859, allocations: 182.6 kB / 0.4984 GB, free: 3.074 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.5864, allocations: 425 kB / 0.4988 GB, free: 2.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007687/0.5872, allocations: 349.9 kB / 0.4991 GB, free: 2.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.5872, allocations: 3.953 kB / 0.4991 GB, free: 2.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001555/0.5887, allocations: 0.7653 MB / 0.4999 GB, free: 1.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5888, allocations: 8.844 kB / 0.4999 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.5888, allocations: 8 kB / 0.4999 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.5891, allocations: 73.61 kB / 0.4999 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008902/0.59, allocations: 215.7 kB / 0.5002 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.592, allocations: 2.56 MB / 0.5027 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/0.5928, allocations: 56.08 kB / 0.5027 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.5928, allocations: 39.98 kB / 0.5027 GB, free: 14.23 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.0001757/0.593, allocations: 124.7 kB / 0.5029 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001187/0.5942, allocations: 0.5665 MB / 0.5034 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.5943, allocations: 35.53 kB / 0.5034 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.5957, allocations: 0.6612 MB / 0.5041 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.5958, allocations: 11.94 kB / 0.5041 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5958, allocations: 0 / 0.5041 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.5958, allocations: 3.984 kB / 0.5041 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.598, allocations: 1.235 MB / 0.5053 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.598, allocations: 0 / 0.5053 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.5987, allocations: 151.8 kB / 0.5055 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/0.5989, allocations: 53.62 kB / 0.5055 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.599, allocations: 7.984 kB / 0.5055 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.6008, allocations: 2.544 MB / 0.508 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.6008, allocations: 3.953 kB / 0.508 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.6024, allocations: 0.9259 MB / 0.5089 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.6027, allocations: 160.6 kB / 0.5091 GB, free: 7.398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/0.6028, allocations: 0 / 0.5091 GB, free: 7.398 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005345/0.6033, allocations: 52 kB / 0.5091 GB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.6034, allocations: 48.67 kB / 0.5092 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.6035, allocations: 20 kB / 0.5092 GB, free: 7.281 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.6037, allocations: 194 kB / 0.5094 GB, free: 7.094 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6037, allocations: 0 / 0.5094 GB, free: 7.094 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007485/0.6045, allocations: 152 kB / 0.5095 GB, free: 6.945 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.002103/0.6066, allocations: 1.537 MB / 0.511 GB, free: 5.375 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.6078, allocations: 0.725 MB / 0.5117 GB, free: 4.629 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6078, allocations: 0 / 0.5117 GB, free: 4.629 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005403/0.6084, allocations: 473.7 kB / 0.5122 GB, free: 4.148 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.6087, allocations: 39.06 kB / 0.5122 GB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.6113, allocations: 0.9283 MB / 0.5131 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.6118, allocations: 0.8964 MB / 0.514 GB, free: 2.223 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005104/0.6123, allocations: 92.41 kB / 0.5141 GB, free: 2.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.6127, allocations: 223.3 kB / 0.5143 GB, free: 1.91 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6127, allocations: 0 / 0.5143 GB, free: 1.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.6453, allocations: 9.585 MB / 0.5237 GB, free: 8.371 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.6456, allocations: 198.3 kB / 0.5238 GB, free: 8.117 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.898, allocations: 3.938 kB / 0.5238 GB, free: 8.113 MB / 410.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