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.001176/0.001176, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.001182/0.001182, allocations: 91.55 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.376e-05/3.399e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1409, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4242/0.5652, allocations: 88.95 MB / 483.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5656, allocations: 83.95 kB / 483.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1329/0.6985, allocations: 54.76 MB / 0.5255 GB, free: 7.137 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6985, allocations: 0 / 0.5255 GB, free: 7.137 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001388/0.6987, allocations: 67.94 kB / 0.5256 GB, free: 7.07 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.007071/0.7057, allocations: 2.761 MB / 0.5283 GB, free: 4.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.7058, allocations: 8.031 kB / 0.5283 GB, free: 4.242 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007175/0.7065, allocations: 436.8 kB / 0.5287 GB, free: 3.805 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002806/0.7093, allocations: 0.5976 MB / 0.5293 GB, free: 3.203 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.7128, allocations: 1.814 MB / 0.5311 GB, free: 1.328 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.713, allocations: 201.4 kB / 0.5313 GB, free: 1.129 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.7134, allocations: 260 kB / 0.5315 GB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005969/0.7193, allocations: 3.473 MB / 0.5349 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.7194, allocations: 0 / 0.5349 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/0.7197, allocations: 116 kB / 0.535 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.7198, allocations: 113.4 kB / 0.5351 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004596/0.7244, allocations: 2.774 MB / 0.5378 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3201/1.044, allocations: 10.52 MB / 0.5481 GB, free: 98.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005568/1.05, allocations: 4.613 MB / 0.5526 GB, free: 94.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/1.052, allocations: 0.8772 MB / 0.5535 GB, free: 94.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004909/1.057, allocations: 2.456 MB / 0.5559 GB, free: 94.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/1.057, allocations: 44.75 kB / 0.5559 GB, free: 94 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 3.276e-06/1.057, allocations: 0 / 0.5559 GB, free: 94 MB / 426.7 MB Notification: Performance of matching and sorting (n=102): time 0.002833/1.06, allocations: 1.456 MB / 0.5573 GB, free: 93.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/1.06, allocations: 88.55 kB / 0.5574 GB, free: 93.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002252/1.062, allocations: 1.203 MB / 0.5586 GB, free: 93.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/1.062, allocations: 42.42 kB / 0.5586 GB, free: 93.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009074/1.063, allocations: 1.165 MB / 0.5598 GB, free: 93.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/1.063, allocations: 360.3 kB / 0.5601 GB, free: 93.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.907e-05/1.063, allocations: 21.81 kB / 0.5601 GB, free: 93.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/1.063, allocations: 358.6 kB / 0.5605 GB, free: 92.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009208/1.064, allocations: 0.5363 MB / 0.561 GB, free: 92.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/1.065, allocations: 0.8012 MB / 0.5618 GB, free: 92.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/1.067, allocations: 0.6763 MB / 0.5624 GB, free: 92.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/1.067, allocations: 2.125 kB / 0.5624 GB, free: 92.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003655/1.07, allocations: 1.89 MB / 0.5643 GB, free: 92.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/1.07, allocations: 9.453 kB / 0.5643 GB, free: 92.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/1.07, allocations: 9.812 kB / 0.5643 GB, free: 92.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/1.071, allocations: 401.1 kB / 0.5647 GB, free: 92.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009294/1.072, allocations: 223.6 kB / 0.5649 GB, free: 92.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007972/1.08, allocations: 6.068 MB / 0.5708 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/1.082, allocations: 145 kB / 0.571 GB, free: 89.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/1.082, allocations: 44.58 kB / 0.571 GB, free: 89.49 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.000257/1.082, allocations: 174.2 kB / 0.5712 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/1.082, allocations: 137.4 kB / 0.5713 GB, free: 89.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/1.085, allocations: 1.607 MB / 0.5729 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.086, allocations: 12.66 kB / 0.5729 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/1.086, allocations: 5.688 kB / 0.5729 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/1.086, allocations: 5.016 kB / 0.5729 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008503/1.094, allocations: 3.908 MB / 0.5767 GB, free: 88.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/1.094, allocations: 7 kB / 0.5767 GB, free: 88.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/1.095, allocations: 135 kB / 0.5768 GB, free: 88.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009168/1.096, allocations: 404.7 kB / 0.5772 GB, free: 88.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.39e-05/1.096, allocations: 33.03 kB / 0.5773 GB, free: 88.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/1.102, allocations: 6.032 MB / 0.5831 GB, free: 85.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/1.102, allocations: 7.875 kB / 0.5832 GB, free: 85.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003377/1.105, allocations: 2.484 MB / 0.5856 GB, free: 84.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005194/1.106, allocations: 228 kB / 0.5858 GB, free: 83.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/1.106, allocations: 44.14 kB / 0.5858 GB, free: 83.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007807/1.107, allocations: 100 kB / 0.5859 GB, free: 83.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/1.107, allocations: 90 kB / 0.586 GB, free: 83.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/1.107, allocations: 37.05 kB / 0.5861 GB, free: 83.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001251/1.108, allocations: 0.9285 MB / 0.587 GB, free: 83.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.108, allocations: 3.156 kB / 0.587 GB, free: 83.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002002/1.11, allocations: 0.687 MB / 0.5876 GB, free: 83.34 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.003491/1.114, allocations: 3.603 MB / 0.5912 GB, free: 81.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00281/1.117, allocations: 1.709 MB / 0.5928 GB, free: 80.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.117, allocations: 3.125 kB / 0.5928 GB, free: 80.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/1.118, allocations: 1.085 MB / 0.5939 GB, free: 79.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/1.12, allocations: 289.3 kB / 0.5942 GB, free: 79.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009713/1.13, allocations: 4.495 MB / 0.5986 GB, free: 78.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002267/1.132, allocations: 2.221 MB / 0.6007 GB, free: 77.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001221/1.133, allocations: 343.2 kB / 0.601 GB, free: 77.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/1.134, allocations: 0.8608 MB / 0.6019 GB, free: 76.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.953e-06/1.134, allocations: 3.625 kB / 0.6019 GB, free: 76.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06604/1.2, allocations: 36.14 MB / 0.6372 GB, free: 60.58 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/1.201, allocations: 191.1 kB / 0.6374 GB, free: 60.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.965/4.166, allocations: 4 kB / 0.6374 GB, free: 60.36 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