Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",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.002048/0.002048, 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.548/1.548, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.0009573/0.000957, allocations: 90.98 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.09e-05/2.085e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.4676, allocations: 95.22 MB / 482.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.468, allocations: 87.95 kB / 482.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09382/0.5618, allocations: 36.8 MB / 0.5075 GB, free: 10.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5619, allocations: 4 kB / 0.5075 GB, free: 10.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.467e-05/0.562, allocations: 27.94 kB / 0.5075 GB, free: 10.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.004375/0.5664, allocations: 1.603 MB / 0.5091 GB, free: 8.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.5664, allocations: 11.97 kB / 0.5091 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002621/0.5691, allocations: 445.8 kB / 0.5095 GB, free: 8.059 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.5705, allocations: 0.7464 MB / 0.5102 GB, free: 7.266 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.5707, allocations: 88.62 kB / 0.5103 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.5709, allocations: 91.98 kB / 0.5104 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002114/0.573, allocations: 1.099 MB / 0.5115 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.5751, allocations: 1.04 MB / 0.5125 GB, free: 4.922 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/0.5751, allocations: 3.906 kB / 0.5125 GB, free: 4.918 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.5752, allocations: 7.984 kB / 0.5125 GB, free: 4.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.5753, allocations: 32 kB / 0.5126 GB, free: 4.879 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007958/0.5832, allocations: 4.701 MB / 0.5171 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.5857, allocations: 1.808 MB / 0.5189 GB, free: 14.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008248/0.5866, allocations: 497.3 kB / 0.5194 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001693/0.5867, allocations: 114.4 kB / 0.5195 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.5878, allocations: 0.6516 MB / 0.5201 GB, free: 12.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.236e-06/0.5879, allocations: 0 / 0.5201 GB, free: 12.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01093/0.5988, allocations: 4.673 MB / 0.5247 GB, free: 7.957 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/0.599, allocations: 238.9 kB / 0.5249 GB, free: 7.676 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007647/0.5998, allocations: 487.4 kB / 0.5254 GB, free: 7.195 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.193e-05/0.5999, allocations: 25.7 kB / 0.5254 GB, free: 7.164 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004956/0.6004, allocations: 0.5661 MB / 0.526 GB, free: 6.586 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.6008, allocations: 0.5157 MB / 0.5265 GB, free: 6.062 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.6009, allocations: 0 / 0.5265 GB, free: 6.062 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.6011, allocations: 410.7 kB / 0.5269 GB, free: 5.652 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006883/0.6018, allocations: 424 kB / 0.5273 GB, free: 5.238 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009198/0.6028, allocations: 0.7331 MB / 0.528 GB, free: 4.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.6041, allocations: 0.6641 MB / 0.5286 GB, free: 3.711 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/0.6041, allocations: 4 kB / 0.5286 GB, free: 3.707 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004019/0.6082, allocations: 1.865 MB / 0.5305 GB, free: 1.824 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.6082, allocations: 8 kB / 0.5305 GB, free: 1.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.6082, allocations: 8 kB / 0.5305 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.6096, allocations: 465.2 kB / 0.5309 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.6108, allocations: 295.5 kB / 0.5312 GB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009107/0.6199, allocations: 8.248 MB / 0.5392 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.6211, allocations: 59.92 kB / 0.5393 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.6212, allocations: 67.98 kB / 0.5394 GB, free: 8.223 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003145/0.6215, allocations: 143.7 kB / 0.5395 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003598/0.6251, allocations: 1.607 MB / 0.5411 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.6253, allocations: 106.7 kB / 0.5412 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.6293, allocations: 1.738 MB / 0.5429 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.6293, allocations: 24.27 kB / 0.5429 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.6293, allocations: 8 kB / 0.5429 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.6293, allocations: 7.969 kB / 0.5429 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00597/0.6353, allocations: 3.369 MB / 0.5462 GB, free: 1.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/0.6354, allocations: 4 kB / 0.5462 GB, free: 1.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009599/0.6363, allocations: 207.7 kB / 0.5464 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/0.6377, allocations: 442.7 kB / 0.5468 GB, free: 464 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.009e-05/0.6378, allocations: 23.97 kB / 0.5468 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2457/0.8835, allocations: 7.986 MB / 0.5546 GB, free: 109.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.8835, allocations: 2.281 kB / 0.5546 GB, free: 109.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006003/0.8895, allocations: 2.476 MB / 0.5571 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006404/0.8902, allocations: 290.7 kB / 0.5573 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.8905, allocations: 8.266 kB / 0.5574 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009032/0.8914, allocations: 48.42 kB / 0.5574 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/0.8918, allocations: 124.3 kB / 0.5575 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.8919, allocations: 52.53 kB / 0.5576 GB, free: 108.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006271/0.8925, allocations: 362 kB / 0.5579 GB, free: 108.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8925, allocations: 0 / 0.5579 GB, free: 108.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002065/0.8946, allocations: 352.4 kB / 0.5582 GB, free: 108.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005737/0.9004, allocations: 3.395 MB / 0.5616 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.9036, allocations: 1.829 MB / 0.5634 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.9036, allocations: 2.594 kB / 0.5634 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/0.9055, allocations: 1.266 MB / 0.5646 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.9061, allocations: 60.12 kB / 0.5646 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006356/0.9125, allocations: 2.171 MB / 0.5668 GB, free: 106.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.9139, allocations: 1.22 MB / 0.568 GB, free: 105.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009207/0.9148, allocations: 152.8 kB / 0.5681 GB, free: 105.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007097/0.9156, allocations: 0.5097 MB / 0.5686 GB, free: 105.4 MB / 426.7 MB Notification: Performance of SimCode: time 6.92e-07/0.9156, allocations: 1.344 kB / 0.5686 GB, free: 105.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06042/0.976, allocations: 24.57 MB / 0.5926 GB, free: 104 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.9763, allocations: 159.5 kB / 0.5927 GB, free: 103.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/3.916, allocations: 0 / 0.5927 GB, free: 103.8 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat