Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002044/0.002044, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 97.92 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.248e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3481, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.4957, allocations: 87.06 MB / 449.5 MB, free: 15.13 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.4961, allocations: 79.95 kB / 449.6 MB, free: 15.05 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2204/0.7165, allocations: 53.3 MB / 0.4911 GB, free: 9.32 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.7166, allocations: 0 / 0.4911 GB, free: 9.32 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002718/0.7169, allocations: 67.94 kB / 0.4912 GB, free: 9.254 MB / 395.1 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.01226/0.7291, allocations: 2.753 MB / 0.4938 GB, free: 6.441 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.7292, allocations: 8.031 kB / 0.4939 GB, free: 6.434 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005217/0.7344, allocations: 0.5976 MB / 0.4944 GB, free: 5.832 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006636/0.7411, allocations: 1.811 MB / 0.4962 GB, free: 3.961 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.7414, allocations: 95.95 kB / 0.4963 GB, free: 3.867 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.7425, allocations: 163.9 kB / 0.4965 GB, free: 3.707 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009239/0.7517, allocations: 2.623 MB / 0.499 GB, free: 1.078 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.293/1.045, allocations: 3.074 MB / 0.502 GB, free: 91.74 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.602e-05/1.045, allocations: 2.266 kB / 0.502 GB, free: 91.74 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000397/1.045, allocations: 2.219 kB / 0.502 GB, free: 91.74 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001661/1.046, allocations: 106 kB / 0.5021 GB, free: 91.73 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03394/1.079, allocations: 10.01 MB / 0.5119 GB, free: 89.55 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/1.091, allocations: 4.558 MB / 0.5163 GB, free: 86.12 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003179/1.094, allocations: 0.8447 MB / 0.5172 GB, free: 86.09 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/1.109, allocations: 2.411 MB / 0.5195 GB, free: 85.33 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.465e-05/1.109, allocations: 46.56 kB / 0.5196 GB, free: 85.29 MB / 395.1 MB Notification: Performance of pre-optimization done (n=102): time 7.985e-06/1.109, allocations: 0.9688 kB / 0.5196 GB, free: 85.29 MB / 395.1 MB Notification: Performance of matching and sorting (n=102): time 0.008853/1.118, allocations: 1.512 MB / 0.5211 GB, free: 85.14 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/1.118, allocations: 87.8 kB / 0.5211 GB, free: 85.04 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004561/1.123, allocations: 1.113 MB / 0.5222 GB, free: 84.9 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000375/1.123, allocations: 29.64 kB / 0.5222 GB, free: 84.87 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/1.124, allocations: 1.13 MB / 0.5234 GB, free: 84.38 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007331/1.125, allocations: 338.5 kB / 0.5237 GB, free: 84.18 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/1.125, allocations: 0 / 0.5237 GB, free: 84.18 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/1.126, allocations: 361 kB / 0.524 GB, free: 83.86 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001879/1.128, allocations: 0.5101 MB / 0.5245 GB, free: 83.86 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/1.13, allocations: 0.7736 MB / 0.5253 GB, free: 83.57 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00357/1.133, allocations: 0.7824 MB / 0.526 GB, free: 83.56 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.476e-05/1.133, allocations: 12.88 kB / 0.5261 GB, free: 83.56 MB / 395.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00863/1.142, allocations: 1.813 MB / 0.5278 GB, free: 83.45 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.707e-05/1.142, allocations: 7.531 kB / 0.5278 GB, free: 83.45 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.402e-05/1.142, allocations: 11.31 kB / 0.5278 GB, free: 83.45 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/1.144, allocations: 389.4 kB / 0.5282 GB, free: 83.43 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/1.147, allocations: 221.9 kB / 0.5284 GB, free: 83.43 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/1.159, allocations: 5.854 MB / 0.5341 GB, free: 79.73 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/1.16, allocations: 118.9 kB / 0.5343 GB, free: 79.68 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/1.161, allocations: 47.64 kB / 0.5343 GB, free: 79.67 MB / 395.1 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.0003131/1.161, allocations: 134.4 kB / 0.5344 GB, free: 79.55 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006203/1.167, allocations: 1.516 MB / 0.5359 GB, free: 79.04 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/1.168, allocations: 133.1 kB / 0.536 GB, free: 78.96 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005181/1.173, allocations: 1.632 MB / 0.5376 GB, free: 78.42 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/1.173, allocations: 13.69 kB / 0.5376 GB, free: 78.42 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/1.173, allocations: 7.75 kB / 0.5376 GB, free: 78.42 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.201e-05/1.173, allocations: 5.156 kB / 0.5377 GB, free: 78.42 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009979/1.183, allocations: 3.595 MB / 0.5412 GB, free: 76.97 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.183, allocations: 3.531 kB / 0.5412 GB, free: 76.97 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/1.184, allocations: 142.2 kB / 0.5413 GB, free: 76.97 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00154/1.186, allocations: 392.5 kB / 0.5417 GB, free: 76.87 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/1.186, allocations: 22.61 kB / 0.5417 GB, free: 76.86 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009415/1.196, allocations: 5.828 MB / 0.5474 GB, free: 72.93 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/1.196, allocations: 5.438 kB / 0.5474 GB, free: 72.93 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006106/1.202, allocations: 2.562 MB / 0.5499 GB, free: 71.75 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006619/1.203, allocations: 238.4 kB / 0.5501 GB, free: 71.56 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003961/1.203, allocations: 15.31 kB / 0.5501 GB, free: 71.56 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/1.205, allocations: 85.89 kB / 0.5502 GB, free: 71.56 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/1.205, allocations: 93.84 kB / 0.5503 GB, free: 71.55 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/1.205, allocations: 32.77 kB / 0.5503 GB, free: 71.54 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001689/1.207, allocations: 0.842 MB / 0.5512 GB, free: 71.19 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.81e-07/1.207, allocations: 0 / 0.5512 GB, free: 71.19 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005607/1.213, allocations: 0.6364 MB / 0.5518 GB, free: 71.02 MB / 395.1 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.0123/1.225, allocations: 3.62 MB / 0.5553 GB, free: 68.85 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006335/1.231, allocations: 1.623 MB / 0.5569 GB, free: 68.14 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.231, allocations: 0 / 0.5569 GB, free: 68.14 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004601/1.236, allocations: 1.041 MB / 0.5579 GB, free: 67.61 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/1.24, allocations: 244.6 kB / 0.5582 GB, free: 67.54 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/1.261, allocations: 4.294 MB / 0.5623 GB, free: 65.86 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002889/1.264, allocations: 2.17 MB / 0.5645 GB, free: 64.84 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/1.266, allocations: 0.8748 MB / 0.5653 GB, free: 64.11 MB / 395.1 MB Notification: Performance of SimCode: time 1.072e-06/1.266, allocations: 0 / 0.5653 GB, free: 64.11 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.256/4.522, allocations: 63.26 MB / 0.6271 GB, free: 7.953 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat