Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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.0009485/0.0009485, allocations: 175.4 kB / 8.349 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.335/1.335, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009275/0.0009275, allocations: 91.61 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.961e-05/1.961e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.09141, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.4032, allocations: 80.45 MB / 468 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.4035, allocations: 79.95 kB / 468.1 MB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01931/0.4228, allocations: 7.118 MB / 475.2 MB, free: 7.043 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4229, allocations: 4 kB / 475.2 MB, free: 7.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.4229, allocations: 8 kB / 475.2 MB, free: 7.031 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008904/0.4238, allocations: 0.5346 MB / 475.7 MB, free: 6.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4239, allocations: 8.031 kB / 475.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.159e-05/0.4239, allocations: 31.62 kB / 475.8 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.4243, allocations: 255.5 kB / 476 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.4244, allocations: 12 kB / 476 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.4244, allocations: 15.98 kB / 476.1 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003395/0.4248, allocations: 173.1 kB / 476.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.4251, allocations: 195.7 kB / 476.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4251, allocations: 3.953 kB / 476.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.4252, allocations: 4 kB / 476.4 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.4252, allocations: 8 kB / 476.4 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.4267, allocations: 0.9619 MB / 477.4 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.427, allocations: 178.5 kB / 477.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.4272, allocations: 88.86 kB / 477.7 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.4272, allocations: 3.984 kB / 477.7 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.4273, allocations: 42.56 kB / 477.7 MB, free: 4.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.4273, allocations: 3.938 kB / 477.7 MB, free: 4.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.003345/0.4306, allocations: 1.102 MB / 478.8 MB, free: 3.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.4307, allocations: 59.41 kB / 478.9 MB, free: 3.113 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.4309, allocations: 187.1 kB / 479.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.4309, allocations: 25.7 kB / 479.1 MB, free: 2.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.431, allocations: 180.4 kB / 479.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.519e-05/0.4311, allocations: 118.3 kB / 479.4 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.4311, allocations: 0 / 479.4 MB, free: 2.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4313, allocations: 334.8 kB / 479.7 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.4314, allocations: 88 kB / 479.8 MB, free: 2.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.4316, allocations: 145.4 kB / 479.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.4318, allocations: 109.5 kB / 480 MB, free: 1.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4318, allocations: 0 / 480 MB, free: 1.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00136/0.4332, allocations: 484.6 kB / 480.5 MB, free: 1.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.4332, allocations: 15.98 kB / 480.5 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4332, allocations: 0 / 480.5 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007595/0.434, allocations: 181.6 kB / 480.7 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.4343, allocations: 55.91 kB / 480.8 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00422/0.4385, allocations: 3.632 MB / 484.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.4388, allocations: 4.031 kB / 484.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.4388, allocations: 19.98 kB / 484.4 MB, free: 13.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.4389, allocations: 104.9 kB / 484.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001291/0.4402, allocations: 434.9 kB / 484.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.203e-05/0.4403, allocations: 23.72 kB / 485 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.497e-05/0.4404, allocations: 43.34 kB / 485 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.4404, allocations: 7.984 kB / 485 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4404, allocations: 0 / 485 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.4404, allocations: 7.922 kB / 485 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.4422, allocations: 0.8604 MB / 485.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4422, allocations: 0 / 485.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.4425, allocations: 39.97 kB / 485.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007175/0.4432, allocations: 185.8 kB / 486.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.4432, allocations: 0 / 486.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003988/0.4472, allocations: 3.616 MB / 489.7 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.4472, allocations: 4.359 kB / 489.7 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.4488, allocations: 0.6709 MB / 490.4 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.973e-05/0.4489, allocations: 108.7 kB / 490.5 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.651e-05/0.4489, allocations: 0 / 490.5 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.4492, allocations: 15.88 kB / 490.5 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.02e-05/0.4493, allocations: 27.95 kB / 490.5 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.4493, allocations: 12 kB / 490.6 MB, free: 6.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000122/0.4494, allocations: 153.7 kB / 490.7 MB, free: 6.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4494, allocations: 0 / 490.7 MB, free: 6.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006251/0.4501, allocations: 88 kB / 490.8 MB, free: 6.535 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001916/0.452, allocations: 1.297 MB / 492.1 MB, free: 5.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008231/0.4528, allocations: 0.5031 MB / 492.6 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4528, allocations: 0 / 492.6 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.4533, allocations: 387.1 kB / 493 MB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.4535, allocations: 9.047 kB / 493 MB, free: 4.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.4546, allocations: 0.4904 MB / 493.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.4549, allocations: 0.784 MB / 494.2 MB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.455, allocations: 22.06 kB / 494.3 MB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.4552, allocations: 95.39 kB / 494.4 MB, free: 2.809 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4552, allocations: 0 / 494.4 MB, free: 2.809 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.4801, allocations: 7.172 MB / 0.4898 GB, free: 11.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.4804, allocations: 160.8 kB / 0.4899 GB, free: 11.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.45, allocations: 0 / 0.4899 GB, free: 11.47 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat