Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.0014/0.0014, allocations: 177.1 kB / 8.35 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.517/1.517, allocations: 221.5 MB / 230.3 MB, free: 7.594 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.0008655/0.0008657, allocations: 95.02 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.655e-05/1.656e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09608, allocations: 50.42 MB / 387.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3313/0.4274, allocations: 80.31 MB / 467.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.4277, allocations: 79.95 kB / 467.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02202/0.4498, allocations: 8.322 MB / 476.3 MB, free: 6.016 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4498, allocations: 4 kB / 476.3 MB, free: 6.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.4498, allocations: 8 kB / 476.3 MB, free: 6.004 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008571/0.4507, allocations: 0.581 MB / 476.9 MB, free: 5.379 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4507, allocations: 11.97 kB / 476.9 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.628e-05/0.4508, allocations: 39.53 kB / 476.9 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.4511, allocations: 268.3 kB / 477.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.4512, allocations: 12 kB / 477.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.4512, allocations: 20 kB / 477.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000324/0.4515, allocations: 181.5 kB / 477.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.4519, allocations: 226.1 kB / 477.6 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.4519, allocations: 0 / 477.6 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.452, allocations: 3.953 kB / 477.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.452, allocations: 8 kB / 477.6 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.4535, allocations: 1.077 MB / 478.7 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.4537, allocations: 118.6 kB / 478.8 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.713e-05/0.4538, allocations: 52.78 kB / 478.9 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.4539, allocations: 4 kB / 478.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.4539, allocations: 42.56 kB / 478.9 MB, free: 3.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.4539, allocations: 0 / 478.9 MB, free: 3.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009923/0.4549, allocations: 370.8 kB / 479.3 MB, free: 2.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.4549, allocations: 55.59 kB / 479.3 MB, free: 2.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.4552, allocations: 238.2 kB / 479.6 MB, free: 2.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4552, allocations: 25.7 kB / 479.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.4553, allocations: 227.8 kB / 479.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.4554, allocations: 70.91 kB / 479.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.4554, allocations: 0 / 479.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.4555, allocations: 338.8 kB / 480.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.4556, allocations: 67.94 kB / 480.3 MB, free: 1.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.4558, allocations: 148.2 kB / 480.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.4559, allocations: 85.08 kB / 480.5 MB, free: 1.484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4559, allocations: 0 / 480.5 MB, free: 1.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000459/0.4564, allocations: 305.3 kB / 480.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.4564, allocations: 4 kB / 480.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.4564, allocations: 4 kB / 480.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.4566, allocations: 58.09 kB / 480.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.457, allocations: 83.83 kB / 480.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.4587, allocations: 2.529 MB / 483.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.459, allocations: 31.83 kB / 483.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.459, allocations: 12 kB / 483.5 MB, free: 14.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * 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 9.427e-05/0.4591, allocations: 122.5 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003201/0.4594, allocations: 196.4 kB / 483.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.4595, allocations: 23.72 kB / 483.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.944e-05/0.4596, allocations: 29.95 kB / 483.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4596, allocations: 4 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.4596, allocations: 0 / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4596, allocations: 11.92 kB / 483.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.4599, allocations: 286 kB / 484.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4599, allocations: 0 / 484.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.4601, allocations: 47.91 kB / 484.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.4603, allocations: 61.8 kB / 484.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.4603, allocations: 0 / 484.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.4619, allocations: 2.517 MB / 486.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.4619, allocations: 4.109 kB / 486.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.4623, allocations: 311.3 kB / 487.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.391e-05/0.4623, allocations: 96.81 kB / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.4624, allocations: 0 / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.4626, allocations: 27.97 kB / 487.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.4627, allocations: 15.98 kB / 487.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.4627, allocations: 7.984 kB / 487.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001588/0.4628, allocations: 182 kB / 487.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4629, allocations: 0 / 487.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000366/0.4632, allocations: 64 kB / 487.5 MB, free: 9.914 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0006582/0.4639, allocations: 0.8385 MB / 488.3 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.4645, allocations: 411.5 kB / 488.7 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4645, allocations: 0 / 488.7 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.4648, allocations: 302.1 kB / 489 MB, free: 8.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.465, allocations: 21.22 kB / 489 MB, free: 8.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000858/0.4659, allocations: 374.9 kB / 489.4 MB, free: 7.891 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.4663, allocations: 0.7833 MB / 490.2 MB, free: 7.078 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.4664, allocations: 26.06 kB / 490.2 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.4666, allocations: 99.41 kB / 490.3 MB, free: 6.953 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4666, allocations: 0 / 490.3 MB, free: 6.953 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02272/0.4893, allocations: 4.605 MB / 494.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.4895, allocations: 188.6 kB / 495.1 MB, free: 2.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.379, allocations: 0 / 495.1 MB, free: 2.195 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat