Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001182/0.001182, allocations: 175.2 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.4/1.4, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.001016/0.001017, allocations: 89.89 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.764e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3274/0.4367, allocations: 80.87 MB / 475.2 MB, free: 6.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.437, allocations: 77.7 kB / 475.3 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02478/0.4618, allocations: 8.306 MB / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4618, allocations: 0 / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.4618, allocations: 8 kB / 483.6 MB, free: 14.22 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008719/0.4627, allocations: 0.5772 MB / 484.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4628, allocations: 8.031 kB / 484.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.968e-05/0.4629, allocations: 70.53 kB / 484.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.4629, allocations: 35.56 kB / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.4633, allocations: 263.2 kB / 484.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/0.4635, allocations: 24.78 kB / 484.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.4635, allocations: 32 kB / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.464, allocations: 259.8 kB / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.464, allocations: 0 / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.4641, allocations: 23.94 kB / 484.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4641, allocations: 8 kB / 484.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.4644, allocations: 203 kB / 485.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.4663, allocations: 1.12 MB / 486.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.4665, allocations: 130.6 kB / 486.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.648e-05/0.4666, allocations: 60.83 kB / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.4667, allocations: 0 / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.4667, allocations: 38.88 kB / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.152e-06/0.4667, allocations: 0 / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001642/0.4684, allocations: 0.508 MB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.4684, allocations: 55.58 kB / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.4687, allocations: 230.8 kB / 487.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.4687, allocations: 33.7 kB / 487.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4688, allocations: 227.5 kB / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/0.4689, allocations: 74.91 kB / 487.5 MB, free: 10 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.375e-05/0.4689, allocations: 4 kB / 487.6 MB, free: 10 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4691, allocations: 346.7 kB / 487.9 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.4692, allocations: 64 kB / 488 MB, free: 9.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.4694, allocations: 160.5 kB / 488.1 MB, free: 9.387 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.4696, allocations: 93.08 kB / 488.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4696, allocations: 0 / 488.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007129/0.4703, allocations: 333.4 kB / 488.5 MB, free: 8.961 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.4703, allocations: 8 kB / 488.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4704, allocations: 4 kB / 488.5 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.4707, allocations: 73.84 kB / 488.6 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.471, allocations: 71.89 kB / 488.7 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.4732, allocations: 2.636 MB / 491.3 MB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.4735, allocations: 27.97 kB / 491.3 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.4736, allocations: 16 kB / 491.4 MB, free: 5.855 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 0.0001046/0.4737, allocations: 121.5 kB / 491.5 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.4737, allocations: 27.78 kB / 491.5 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.305e-05/0.4738, allocations: 37.91 kB / 491.5 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.4738, allocations: 0 / 491.5 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4738, allocations: 4 kB / 491.5 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4738, allocations: 0 / 491.5 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.4742, allocations: 333.6 kB / 491.9 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4742, allocations: 3.938 kB / 491.9 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.4744, allocations: 43.91 kB / 491.9 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002665/0.4747, allocations: 53.69 kB / 492 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.4748, allocations: 4 kB / 492 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.4767, allocations: 2.632 MB / 494.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.109e-05/0.4768, allocations: 3.938 kB / 494.6 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004871/0.4773, allocations: 314.3 kB / 494.9 MB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-05/0.4774, allocations: 96.81 kB / 495 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/0.4774, allocations: 15.98 kB / 495 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.4777, allocations: 24.05 kB / 495.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.4777, allocations: 15.97 kB / 495.1 MB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.4778, allocations: 8 kB / 495.1 MB, free: 1.766 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001896/0.4779, allocations: 183.1 kB / 495.3 MB, free: 1.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.478, allocations: 0 / 495.3 MB, free: 1.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.4783, allocations: 72 kB / 495.3 MB, free: 1.52 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.0009701/0.4793, allocations: 0.8576 MB / 496.2 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006649/0.48, allocations: 432.9 kB / 496.6 MB, free: 188 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.48, allocations: 0 / 496.6 MB, free: 188 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.4804, allocations: 318.2 kB / 496.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.4807, allocations: 28.38 kB / 496.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.4818, allocations: 399.5 kB / 497.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.4821, allocations: 0.7791 MB / 498.1 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.4823, allocations: 26.06 kB / 498.1 MB, free: 14.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.4824, allocations: 96.28 kB / 498.2 MB, free: 14.47 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4824, allocations: 4 kB / 498.2 MB, free: 14.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.5016, allocations: 5.103 MB / 0.4915 GB, free: 9.539 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003281/0.502, allocations: 196.8 kB / 0.4917 GB, free: 9.312 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.541, allocations: 4.062 kB / 0.4917 GB, free: 9.309 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat