Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001455/0.001456, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 88.11 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.524e-05/1.535e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4845, allocations: 93.15 MB / 456.3 MB, free: 2.648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4849, allocations: 82.45 kB / 456.4 MB, free: 2.605 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09038/0.5753, allocations: 37 MB / 493.4 MB, free: 3.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.5753, allocations: 0 / 493.4 MB, free: 3.074 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.225e-05/0.5754, allocations: 28 kB / 493.4 MB, free: 3.047 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00421/0.5796, allocations: 1.614 MB / 495 MB, free: 1.375 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.5797, allocations: 8.031 kB / 495 MB, free: 1.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002992/0.5827, allocations: 0.5056 MB / 495.6 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.584, allocations: 0.7543 MB / 496.3 MB, free: 60 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.5842, allocations: 92.66 kB / 496.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.5843, allocations: 95.91 kB / 496.5 MB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002121/0.5865, allocations: 1.154 MB / 497.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.5885, allocations: 1.064 MB / 498.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.303e-05/0.5886, allocations: 3.984 kB / 498.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.5887, allocations: 4 kB / 498.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.796e-05/0.5887, allocations: 32 kB / 498.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008117/0.5969, allocations: 4.831 MB / 0.4918 GB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.5997, allocations: 2.326 MB / 0.494 GB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007589/0.6005, allocations: 497.3 kB / 0.4945 GB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001425/0.6006, allocations: 110.4 kB / 0.4946 GB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.6017, allocations: 0.6595 MB / 0.4953 GB, free: 4.633 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.188e-06/0.6017, allocations: 0 / 0.4953 GB, free: 4.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01077/0.6125, allocations: 4.698 MB / 0.4999 GB, free: 15.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.6127, allocations: 226.9 kB / 0.5001 GB, free: 15.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006878/0.6134, allocations: 0.4994 MB / 0.5006 GB, free: 15.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.6135, allocations: 29.7 kB / 0.5006 GB, free: 15.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004782/0.614, allocations: 0.5777 MB / 0.5012 GB, free: 14.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004366/0.6144, allocations: 0.5157 MB / 0.5017 GB, free: 13.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/0.6145, allocations: 0 / 0.5017 GB, free: 13.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002347/0.6147, allocations: 418.6 kB / 0.5021 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007157/0.6155, allocations: 424 kB / 0.5025 GB, free: 13.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009748/0.6165, allocations: 0.787 MB / 0.5032 GB, free: 12.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.6179, allocations: 0.6798 MB / 0.5039 GB, free: 11.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.6179, allocations: 4 kB / 0.5039 GB, free: 11.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004199/0.6221, allocations: 1.902 MB / 0.5058 GB, free: 9.566 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.6222, allocations: 11.95 kB / 0.5058 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.6222, allocations: 16 kB / 0.5058 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.6237, allocations: 475 kB / 0.5062 GB, free: 9.062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.6249, allocations: 303.5 kB / 0.5065 GB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009508/0.6345, allocations: 8.256 MB / 0.5146 GB, free: 52 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.6358, allocations: 59.97 kB / 0.5146 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.6359, allocations: 71.94 kB / 0.5147 GB, free: 15.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000325/0.6363, allocations: 155.9 kB / 0.5149 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003704/0.64, allocations: 1.611 MB / 0.5164 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.6402, allocations: 102.8 kB / 0.5165 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/0.6442, allocations: 1.746 MB / 0.5182 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/0.6443, allocations: 20 kB / 0.5183 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.6443, allocations: 8 kB / 0.5183 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.6443, allocations: 11.97 kB / 0.5183 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006083/0.6504, allocations: 3.402 MB / 0.5216 GB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.6504, allocations: 7.938 kB / 0.5216 GB, free: 8.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009993/0.6514, allocations: 211.8 kB / 0.5218 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/0.6528, allocations: 443 kB / 0.5222 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.65e-05/0.6529, allocations: 24.25 kB / 0.5223 GB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2414/0.8943, allocations: 7.979 MB / 0.53 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.8944, allocations: 1.281 kB / 0.53 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/0.9005, allocations: 2.501 MB / 0.5325 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006253/0.9012, allocations: 295.7 kB / 0.5328 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.9014, allocations: 10.59 kB / 0.5328 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008527/0.9023, allocations: 42.12 kB / 0.5328 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.9026, allocations: 135.7 kB / 0.533 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001697/0.9028, allocations: 48.78 kB / 0.533 GB, free: 110 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005419/0.9034, allocations: 368.9 kB / 0.5334 GB, free: 109.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9034, allocations: 1.156 kB / 0.5334 GB, free: 109.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001953/0.9053, allocations: 359.6 kB / 0.5337 GB, free: 109.9 MB / 410.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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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 (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005532/0.9109, allocations: 3.423 MB / 0.537 GB, free: 108.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003154/0.9141, allocations: 1.853 MB / 0.5388 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.9141, allocations: 1 kB / 0.5388 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.916, allocations: 1.257 MB / 0.5401 GB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007521/0.9168, allocations: 64.67 kB / 0.5401 GB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0096/0.9264, allocations: 2.722 MB / 0.5428 GB, free: 107.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.9278, allocations: 1.221 MB / 0.544 GB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001053/0.9289, allocations: 162.6 kB / 0.5441 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006884/0.9296, allocations: 0.517 MB / 0.5446 GB, free: 106.5 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.9296, allocations: 0 / 0.5446 GB, free: 106.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04926/0.9789, allocations: 24.8 MB / 0.5689 GB, free: 105.1 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/0.9791, allocations: 161.5 kB / 0.569 GB, free: 104.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.94, allocations: 0 / 0.569 GB, free: 104.9 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat