Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001976/0.001975, 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.521/1.521, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008858/0.0008858, allocations: 94.03 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.581e-05/1.582e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.09945, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.436, allocations: 88.28 MB / 475.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.4363, allocations: 84.98 kB / 475.9 MB, free: 6.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1275/0.5638, allocations: 54.16 MB / 0.5177 GB, free: 15.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5639, allocations: 0 / 0.5177 GB, free: 15.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001688/0.564, allocations: 59.94 kB / 0.5177 GB, free: 15.59 MB / 410.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.007704/0.5718, allocations: 2.759 MB / 0.5204 GB, free: 12.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/0.5718, allocations: 12.03 kB / 0.5204 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003475/0.5753, allocations: 0.6015 MB / 0.521 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004095/0.5794, allocations: 1.811 MB / 0.5228 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.452e-05/0.5796, allocations: 84 kB / 0.5229 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004293/0.58, allocations: 155.9 kB / 0.523 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0046/0.5846, allocations: 2.631 MB / 0.5256 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005208/0.5898, allocations: 3.064 MB / 0.5286 GB, free: 4.227 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.729e-05/0.5899, allocations: 0 / 0.5286 GB, free: 4.227 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002266/0.5901, allocations: 7.953 kB / 0.5286 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.5903, allocations: 105.4 kB / 0.5287 GB, free: 4.113 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.6081, allocations: 10.01 MB / 0.5384 GB, free: 9.773 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005333/0.6134, allocations: 4.557 MB / 0.5429 GB, free: 4.562 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.6147, allocations: 0.8402 MB / 0.5437 GB, free: 3.715 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004503/0.6193, allocations: 2.409 MB / 0.5461 GB, free: 1.219 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.6193, allocations: 51.42 kB / 0.5461 GB, free: 1.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 4.007e-06/0.6193, allocations: 4 kB / 0.5461 GB, free: 1.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=102): time 0.2639/0.8832, allocations: 1.504 MB / 0.5476 GB, free: 104.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.8833, allocations: 88.77 kB / 0.5477 GB, free: 104.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/0.8852, allocations: 1.099 MB / 0.5488 GB, free: 104.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.8854, allocations: 26.98 kB / 0.5488 GB, free: 104.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008121/0.8863, allocations: 1.154 MB / 0.5499 GB, free: 104.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.8866, allocations: 343.4 kB / 0.5502 GB, free: 104.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.8866, allocations: 2.719 kB / 0.5502 GB, free: 104.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.8867, allocations: 353.4 kB / 0.5506 GB, free: 103.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007822/0.8875, allocations: 0.5107 MB / 0.5511 GB, free: 103.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009264/0.8885, allocations: 0.7759 MB / 0.5518 GB, free: 103.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.89, allocations: 0.785 MB / 0.5526 GB, free: 103.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.89, allocations: 2.469 kB / 0.5526 GB, free: 103.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003554/0.8936, allocations: 1.905 MB / 0.5545 GB, free: 103.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.8936, allocations: 8.594 kB / 0.5545 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.8936, allocations: 10.94 kB / 0.5545 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.8947, allocations: 384.6 kB / 0.5548 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008397/0.8956, allocations: 223.7 kB / 0.5551 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00707/0.9027, allocations: 5.86 MB / 0.5608 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.9039, allocations: 120.5 kB / 0.5609 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.904, allocations: 48.92 kB / 0.5609 GB, free: 100.8 MB / 426.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.0002343/0.9042, allocations: 128.8 kB / 0.5611 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003028/0.9073, allocations: 1.522 MB / 0.5626 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001978/0.9075, allocations: 131 kB / 0.5627 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/0.9107, allocations: 1.637 MB / 0.5643 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.9107, allocations: 17.2 kB / 0.5643 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.9107, allocations: 7.141 kB / 0.5643 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.9108, allocations: 5.703 kB / 0.5643 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006202/0.917, allocations: 3.581 MB / 0.5678 GB, free: 99.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.917, allocations: 8.438 kB / 0.5678 GB, free: 99.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/0.9176, allocations: 135.9 kB / 0.5679 GB, free: 99.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008646/0.9184, allocations: 389.8 kB / 0.5683 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.429e-05/0.9185, allocations: 27.58 kB / 0.5683 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005923/0.9245, allocations: 5.835 MB / 0.574 GB, free: 97.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.9245, allocations: 7.953 kB / 0.574 GB, free: 97.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003243/0.9277, allocations: 2.554 MB / 0.5765 GB, free: 96.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.9281, allocations: 232 kB / 0.5768 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.9283, allocations: 17.98 kB / 0.5768 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007348/0.929, allocations: 82.09 kB / 0.5769 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.9293, allocations: 97.53 kB / 0.5769 GB, free: 96.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.9293, allocations: 33.19 kB / 0.577 GB, free: 96.47 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001084/0.9304, allocations: 0.8415 MB / 0.5778 GB, free: 96.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9304, allocations: 3.172 kB / 0.5778 GB, free: 96.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002014/0.9324, allocations: 0.6257 MB / 0.5784 GB, free: 96.2 MB / 426.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.003663/0.9361, allocations: 3.633 MB / 0.582 GB, free: 94.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.9384, allocations: 1.622 MB / 0.5835 GB, free: 93.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.9384, allocations: 3.375 kB / 0.5835 GB, free: 93.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.9398, allocations: 1.043 MB / 0.5846 GB, free: 93.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.9413, allocations: 237.1 kB / 0.5848 GB, free: 93.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008251/0.9495, allocations: 4.374 MB / 0.5891 GB, free: 91.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001545/0.9511, allocations: 2.227 MB / 0.5912 GB, free: 90.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001021/0.9522, allocations: 326.5 kB / 0.5916 GB, free: 90.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000854/0.953, allocations: 0.8688 MB / 0.5924 GB, free: 89.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.953, allocations: 0 / 0.5924 GB, free: 89.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06143/1.014, allocations: 33.11 MB / 0.6247 GB, free: 78.57 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/1.015, allocations: 160.2 kB / 0.6249 GB, free: 78.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/3.94, allocations: 11.12 kB / 0.6249 GB, free: 78.38 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat