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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008822/0.0008823, allocations: 89.08 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009081/0.0009081, allocations: 181.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 223.3 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003354, allocations: 4 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 50.41 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.01033/0.1508, allocations: 6.273 MB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.1567, allocations: 2.033 MB / 359.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008768/0.1576, allocations: 43.81 kB / 359.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1587, allocations: 322 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002857/0.1616, allocations: 0.7582 MB / 360.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007402/0.1624, allocations: 262.8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.1656, allocations: 3.176 MB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002322/0.168, allocations: 1.992 MB / 366.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.1694, allocations: 1.012 MB / 367.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.1713, allocations: 1.327 MB / 368.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003687/0.1717, allocations: 156 kB / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008789/0.1726, allocations: 263.9 kB / 368.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006137/0.1732, allocations: 0.6461 MB / 369.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007603/0.174, allocations: 0.5471 MB / 370.1 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1906/0.3645, allocations: 3.715 MB / 373.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3646, allocations: 0 / 373.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.3646, allocations: 0.75 kB / 373.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.3648, allocations: 0 / 373.8 MB, free: 13.08 MB / 302.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.01054/0.3754, allocations: 3.156 MB / 377 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3754, allocations: 9.594 kB / 377 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00179/0.3772, allocations: 439.8 kB / 377.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004324/0.3816, allocations: 0.6946 MB / 378.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004894/0.3865, allocations: 1.7 MB / 379.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.3868, allocations: 202.8 kB / 380 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.3879, allocations: 266.5 kB / 380.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009306/0.3972, allocations: 3.608 MB / 383.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.609e-05/0.3973, allocations: 3.375 kB / 383.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003147/0.3977, allocations: 108.2 kB / 384 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.3978, allocations: 109.8 kB / 384.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005769/0.4036, allocations: 3.103 MB / 387.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.42, allocations: 10.41 MB / 397.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003537/0.4235, allocations: 4.577 MB / 402.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.4248, allocations: 0.9547 MB / 403.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003608/0.4284, allocations: 2.403 MB / 405.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.4285, allocations: 47.44 kB / 405.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.544e-06/0.4285, allocations: 4 kB / 405.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.005931/0.4344, allocations: 2.763 MB / 408.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.4345, allocations: 89.98 kB / 408.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.4363, allocations: 1.361 MB / 409.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.638e-05/0.4364, allocations: 45.7 kB / 409.9 MB, free: 8.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006892/0.4371, allocations: 1.167 MB / 411 MB, free: 7.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.4374, allocations: 363.2 kB / 411.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.4375, allocations: 28 kB / 411.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4376, allocations: 349.9 kB / 411.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008716/0.4385, allocations: 0.5705 MB / 412.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.4395, allocations: 0.8595 MB / 413.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.4405, allocations: 0.7075 MB / 413.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.4405, allocations: 0 / 413.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003125/0.4437, allocations: 1.983 MB / 415.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4437, allocations: 8 kB / 415.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.4437, allocations: 11.94 kB / 415.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009027/0.4446, allocations: 409.5 kB / 416.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007673/0.4454, allocations: 217.2 kB / 416.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006481/0.4519, allocations: 5.977 MB / 422.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.4529, allocations: 150.6 kB / 422.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.824e-05/0.453, allocations: 51.98 kB / 422.7 MB, free: 11.1 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * 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.001613/0.4546, allocations: 0.8653 MB / 423.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.4549, allocations: 138.4 kB / 423.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.4577, allocations: 1.663 MB / 425.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.4577, allocations: 12 kB / 425.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4577, allocations: 6.516 kB / 425.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.4578, allocations: 11.97 kB / 425.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005818/0.4636, allocations: 3.935 MB / 429.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4636, allocations: 8.188 kB / 429.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.4642, allocations: 133.6 kB / 429.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008651/0.465, allocations: 396.3 kB / 429.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.182e-05/0.4651, allocations: 31.98 kB / 429.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006436/0.4716, allocations: 5.966 MB / 435.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4716, allocations: 4 kB / 435.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003785/0.4754, allocations: 2.501 MB / 438.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.4758, allocations: 243.2 kB / 438.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.476, allocations: 31.98 kB / 438.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007086/0.4767, allocations: 91.92 kB / 438.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.4769, allocations: 100.8 kB / 438.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.069e-05/0.477, allocations: 39.97 kB / 438.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001411/0.4784, allocations: 0.9474 MB / 439.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.062e-06/0.4784, allocations: 0 / 439.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4804, allocations: 0.6795 MB / 440.5 MB, free: 9.004 MB / 350.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,loss_m.Phi.re,loss_m.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 62 * 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.003984/0.4844, allocations: 3.104 MB / 443.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002967/0.4874, allocations: 1.792 MB / 445.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4874, allocations: 0 / 445.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.4892, allocations: 1.141 MB / 446.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.491, allocations: 304.4 kB / 446.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/0.5112, allocations: 12.76 MB / 459.6 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001709/0.5129, allocations: 2.184 MB / 461.7 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.514, allocations: 343 kB / 462.1 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000971/0.515, allocations: 0.8664 MB / 462.9 MB, free: 2.047 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.515, allocations: 0 / 462.9 MB, free: 2.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05745/0.5725, allocations: 35.42 MB / 498.4 MB, free: 15.1 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.5727, allocations: 237.2 kB / 498.6 MB, free: 14.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.056, allocations: 4.062 kB / 498.6 MB, free: 14.86 MB / 414.1 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