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.001166/0.001166, allocations: 100 kB / 16.3 MB, free: 5.574 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.001373/0.001374, allocations: 186.5 kB / 17.2 MB, free: 5.508 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.434/1.434, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002829/0.000283, allocations: 4 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 50.42 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.006689/0.1122, allocations: 5.853 MB / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004039/0.1163, allocations: 2.08 MB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009615/0.1173, allocations: 47.75 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008649/0.1181, allocations: 346.1 kB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001978/0.1201, allocations: 0.7274 MB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006791/0.1208, allocations: 251.6 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002793/0.1236, allocations: 2.016 MB / 362.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002307/0.1259, allocations: 2.015 MB / 364.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.1275, allocations: 0.9731 MB / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/0.1293, allocations: 1.167 MB / 366.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000338/0.1296, allocations: 152 kB / 366.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007584/0.1304, allocations: 251.9 kB / 367.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005263/0.1309, allocations: 0.6113 MB / 367.7 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000616/0.1315, allocations: 0.551 MB / 368.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2025/0.3341, allocations: 3.714 MB / 372 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3341, allocations: 0 / 372 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3341, allocations: 0 / 372 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001954/0.3343, allocations: 1.062 kB / 372 MB, free: 12.84 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.01003/0.3444, allocations: 3.152 MB / 375.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3444, allocations: 9.219 kB / 375.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001886/0.3463, allocations: 440.3 kB / 375.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004608/0.3509, allocations: 0.6872 MB / 376.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005609/0.3566, allocations: 1.697 MB / 377.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.3569, allocations: 201.2 kB / 378.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.3584, allocations: 265.5 kB / 378.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009502/0.3679, allocations: 3.587 MB / 382 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.727e-05/0.368, allocations: 0 / 382 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003801/0.3684, allocations: 115 kB / 382.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.3685, allocations: 103.2 kB / 382.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006513/0.3751, allocations: 3.107 MB / 385.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02078/0.3959, allocations: 10.42 MB / 395.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004079/0.4, allocations: 4.565 MB / 400.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004793/0.4048, allocations: 2.457 MB / 402.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.4049, allocations: 45.44 kB / 402.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.675e-06/0.4049, allocations: 0 / 402.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=108): time 0.006304/0.4112, allocations: 2.725 MB / 405.5 MB, free: 11.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4113, allocations: 90.11 kB / 405.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.4132, allocations: 1.354 MB / 407 MB, free: 9.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001583/0.4134, allocations: 45.7 kB / 407 MB, free: 9.879 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007165/0.4141, allocations: 1.153 MB / 408.2 MB, free: 8.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003599/0.4145, allocations: 377.5 kB / 408.5 MB, free: 8.355 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.269e-05/0.4146, allocations: 20 kB / 408.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4147, allocations: 353.9 kB / 408.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009388/0.4157, allocations: 0.592 MB / 409.5 MB, free: 7.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.4168, allocations: 0.8427 MB / 410.3 MB, free: 6.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.4179, allocations: 0.721 MB / 411 MB, free: 5.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.4179, allocations: 0 / 411 MB, free: 5.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00344/0.4213, allocations: 1.996 MB / 413 MB, free: 3.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.4214, allocations: 8 kB / 413 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.4214, allocations: 8 kB / 413.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.4226, allocations: 389.3 kB / 413.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.4236, allocations: 229.7 kB / 413.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007494/0.4311, allocations: 6.125 MB / 419.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.4325, allocations: 154.8 kB / 419.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.4327, allocations: 44 kB / 420 MB, free: 12.62 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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.00183/0.4345, allocations: 0.8601 MB / 420.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004686/0.435, allocations: 134.4 kB / 421 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003108/0.4381, allocations: 1.73 MB / 422.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.4382, allocations: 12 kB / 422.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.4382, allocations: 10.3 kB / 422.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/0.4382, allocations: 11.92 kB / 422.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006694/0.4449, allocations: 4.017 MB / 426.7 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4449, allocations: 4 kB / 426.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006334/0.4456, allocations: 150.7 kB / 426.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009344/0.4465, allocations: 402.5 kB / 427.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.257e-05/0.4466, allocations: 31.98 kB / 427.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006772/0.4534, allocations: 6.095 MB / 433.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4535, allocations: 0 / 433.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.4576, allocations: 2.659 MB / 436.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006754/0.4583, allocations: 251.1 kB / 436.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/0.4585, allocations: 24 kB / 436.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/0.4593, allocations: 99.91 kB / 436.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/0.4596, allocations: 104.3 kB / 436.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-05/0.4597, allocations: 35.98 kB / 436.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.461, allocations: 0.9392 MB / 437.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4611, allocations: 0 / 437.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002148/0.4632, allocations: 0.6804 MB / 438.2 MB, free: 10.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (67): * Single equations (assignments): 65 * 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.00441/0.4676, allocations: 3.666 MB / 441.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003185/0.4708, allocations: 1.825 MB / 443.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.4709, allocations: 3.094 kB / 443.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.4727, allocations: 1.156 MB / 444.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4743, allocations: 270.4 kB / 445.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0214/0.4957, allocations: 17.51 MB / 462.6 MB, free: 1.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/0.4978, allocations: 2.223 MB / 464.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001266/0.4991, allocations: 347 kB / 465.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.5002, allocations: 0.8664 MB / 466.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.5002, allocations: 0 / 466.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/0.5609, allocations: 35.48 MB / 0.4898 GB, free: 10.69 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.5612, allocations: 232.2 kB / 0.49 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.1, allocations: 0 / 0.49 GB, free: 10.45 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