Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",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.001209/0.001209, 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.576/1.576, 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.0008922/0.0008922, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.474e-05/1.493e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09738, allocations: 47.58 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3642/0.4616, allocations: 87.31 MB / 450.5 MB, free: 8.168 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.462, allocations: 82.94 kB / 450.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1284/0.5904, allocations: 53.31 MB / 0.4921 GB, free: 8.371 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5905, allocations: 4 kB / 0.4921 GB, free: 8.367 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00017/0.5907, allocations: 67.88 kB / 0.4921 GB, free: 8.301 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.007533/0.5982, allocations: 2.749 MB / 0.4948 GB, free: 5.488 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.5983, allocations: 8.031 kB / 0.4948 GB, free: 5.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003472/0.6018, allocations: 0.5976 MB / 0.4954 GB, free: 4.879 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/0.6059, allocations: 1.814 MB / 0.4972 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.6061, allocations: 87.95 kB / 0.4973 GB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005071/0.6066, allocations: 163.8 kB / 0.4974 GB, free: 2.758 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00512/0.6117, allocations: 2.627 MB / 0.5 GB, free: 128 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006217/0.618, allocations: 3.076 MB / 0.503 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.842e-05/0.6181, allocations: 3.938 kB / 0.503 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.6183, allocations: 4 kB / 0.503 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.6185, allocations: 101.4 kB / 0.5031 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01684/0.6353, allocations: 10.03 MB / 0.5129 GB, free: 2.469 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004961/0.6403, allocations: 4.561 MB / 0.5173 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.6416, allocations: 0.8414 MB / 0.5182 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004347/0.6459, allocations: 2.413 MB / 0.5205 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.646, allocations: 47.44 kB / 0.5206 GB, free: 9.848 MB / 410.7 MB Notification: Performance of pre-optimization done (n=102): time 4.679e-06/0.646, allocations: 0 / 0.5206 GB, free: 9.848 MB / 410.7 MB Notification: Performance of matching and sorting (n=102): time 0.003036/0.6491, allocations: 1.517 MB / 0.522 GB, free: 8.316 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.6491, allocations: 89.98 kB / 0.5221 GB, free: 8.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.6509, allocations: 1.101 MB / 0.5232 GB, free: 7.098 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.497e-05/0.651, allocations: 29.7 kB / 0.5232 GB, free: 7.062 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008292/0.6518, allocations: 1.156 MB / 0.5244 GB, free: 5.891 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.6521, allocations: 335 kB / 0.5247 GB, free: 5.559 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.6522, allocations: 3.938 kB / 0.5247 GB, free: 5.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.6524, allocations: 357.9 kB / 0.525 GB, free: 5.199 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007294/0.6531, allocations: 0.5062 MB / 0.5255 GB, free: 4.691 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000908/0.654, allocations: 0.7795 MB / 0.5263 GB, free: 3.801 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.6555, allocations: 0.7848 MB / 0.527 GB, free: 3.012 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.6555, allocations: 4 kB / 0.527 GB, free: 3.008 MB / 410.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003537/0.659, allocations: 1.898 MB / 0.5289 GB, free: 1.098 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.6591, allocations: 12.06 kB / 0.5289 GB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.6591, allocations: 8 kB / 0.5289 GB, free: 1.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000963/0.6601, allocations: 391.8 kB / 0.5293 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/0.6609, allocations: 219.6 kB / 0.5295 GB, free: 488 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2587/0.9196, allocations: 5.844 MB / 0.5352 GB, free: 99.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.921, allocations: 119.4 kB / 0.5353 GB, free: 99.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.9211, allocations: 51.33 kB / 0.5354 GB, free: 99.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 105 * 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 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002798/0.9214, allocations: 126.6 kB / 0.5355 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003458/0.9249, allocations: 1.521 MB / 0.537 GB, free: 99.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.9253, allocations: 132.8 kB / 0.5371 GB, free: 99.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.9288, allocations: 1.634 MB / 0.5387 GB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.9288, allocations: 9.891 kB / 0.5387 GB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.9289, allocations: 10.64 kB / 0.5387 GB, free: 99.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.9289, allocations: 6.359 kB / 0.5387 GB, free: 99.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007836/0.9367, allocations: 3.594 MB / 0.5422 GB, free: 98.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.9368, allocations: 2.203 kB / 0.5422 GB, free: 98.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/0.9374, allocations: 138.3 kB / 0.5424 GB, free: 98.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.9385, allocations: 389 kB / 0.5427 GB, free: 98.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-05/0.9386, allocations: 24.08 kB / 0.5428 GB, free: 98.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006756/0.9453, allocations: 5.833 MB / 0.5485 GB, free: 96.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/0.9454, allocations: 2.281 kB / 0.5485 GB, free: 96.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.9495, allocations: 2.561 MB / 0.551 GB, free: 95.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004683/0.95, allocations: 240.6 kB / 0.5512 GB, free: 95.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.9502, allocations: 12.72 kB / 0.5512 GB, free: 95.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007828/0.951, allocations: 84.08 kB / 0.5513 GB, free: 95.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.9512, allocations: 92.16 kB / 0.5514 GB, free: 95.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.265e-05/0.9513, allocations: 34.3 kB / 0.5514 GB, free: 95.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001062/0.9523, allocations: 0.8506 MB / 0.5522 GB, free: 95.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9524, allocations: 0 / 0.5522 GB, free: 95.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002006/0.9544, allocations: 0.6333 MB / 0.5529 GB, free: 95.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * 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 {(2,100.0%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003651/0.958, allocations: 3.62 MB / 0.5564 GB, free: 93.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.9604, allocations: 1.62 MB / 0.558 GB, free: 93.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.9605, allocations: 6.844 kB / 0.558 GB, free: 93.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.9619, allocations: 1.045 MB / 0.559 GB, free: 93.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.9641, allocations: 241.3 kB / 0.5592 GB, free: 93.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.9763, allocations: 4.377 MB / 0.5635 GB, free: 92.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002505/0.9789, allocations: 2.225 MB / 0.5657 GB, free: 91.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001848/0.9808, allocations: 326.9 kB / 0.566 GB, free: 91.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/0.9824, allocations: 0.8712 MB / 0.5668 GB, free: 91.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/0.9824, allocations: 0 / 0.5668 GB, free: 91.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07696/1.059, allocations: 33.13 MB / 0.5992 GB, free: 81.85 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/1.06, allocations: 167.3 kB / 0.5993 GB, free: 81.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.946/4.006, allocations: 0 / 0.5993 GB, free: 81.66 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat