Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001235/0.001235, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002235/0.0002235, allocations: 7.984 kB / 306.7 MB, free: 1.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1078, allocations: 51.5 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.007194/0.1151, allocations: 6.334 MB / 364.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004907/0.12, allocations: 2.302 MB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.1212, allocations: 55.69 kB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.1222, allocations: 362 kB / 367.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.1247, allocations: 0.7628 MB / 368 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008203/0.1255, allocations: 270 kB / 368.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003255/0.1287, allocations: 2.073 MB / 370.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1883/0.3171, allocations: 2.008 MB / 372.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002465/0.3196, allocations: 0.9702 MB / 373.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004083/0.3237, allocations: 1.17 MB / 374.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.325, allocations: 153.5 kB / 374.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.3269, allocations: 264.7 kB / 374.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.3279, allocations: 0.6063 MB / 375.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.3291, allocations: 0.5514 MB / 376.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005522/0.3347, allocations: 3.731 MB / 379.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3347, allocations: 1.625 kB / 379.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3347, allocations: 0.5 kB / 379.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002289/0.335, allocations: 1.062 kB / 379.8 MB, free: 9.73 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.01178/0.3467, allocations: 3.164 MB / 383 MB, free: 8.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3468, allocations: 8.719 kB / 383 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001783/0.3486, allocations: 437.2 kB / 383.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005163/0.3538, allocations: 0.7677 MB / 384.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005503/0.3593, allocations: 1.694 MB / 385.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.3596, allocations: 201 kB / 386.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.3614, allocations: 268.8 kB / 386.3 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/0.3716, allocations: 3.587 MB / 389.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.557e-05/0.3717, allocations: 4 kB / 389.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003229/0.372, allocations: 109.1 kB / 390 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.3722, allocations: 106.7 kB / 390.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006826/0.379, allocations: 3.107 MB / 393.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01981/0.3988, allocations: 10.41 MB / 403.6 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004957/0.4038, allocations: 4.567 MB / 408.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005591/0.4095, allocations: 2.712 MB / 410.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.4096, allocations: 43.56 kB / 411 MB, free: 5.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.826e-06/0.4096, allocations: 0 / 411 MB, free: 5.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=108): time 0.006438/0.416, allocations: 2.729 MB / 413.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.4161, allocations: 86.11 kB / 413.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.4186, allocations: 1.359 MB / 415.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.4188, allocations: 41.7 kB / 415.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007632/0.4195, allocations: 1.157 MB / 416.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003609/0.4199, allocations: 367.8 kB / 416.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.411e-05/0.42, allocations: 28 kB / 416.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4201, allocations: 360.1 kB / 417.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.4212, allocations: 0.5881 MB / 417.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.4223, allocations: 0.8427 MB / 418.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.4235, allocations: 0.7186 MB / 419.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.4235, allocations: 4 kB / 419.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003327/0.4268, allocations: 1.992 MB / 421.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.4269, allocations: 8 kB / 421.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4269, allocations: 8 kB / 421.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009736/0.4279, allocations: 402.7 kB / 421.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000872/0.4288, allocations: 219.7 kB / 421.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00783/0.4366, allocations: 6.128 MB / 428 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.4381, allocations: 142.7 kB / 428.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.4383, allocations: 48 kB / 428.1 MB, free: 3.465 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.001952/0.4402, allocations: 0.8689 MB / 429 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/0.4406, allocations: 138.3 kB / 429.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003021/0.4436, allocations: 1.717 MB / 430.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.4436, allocations: 12 kB / 430.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4437, allocations: 8 kB / 430.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4437, allocations: 3.984 kB / 430.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006886/0.4506, allocations: 4.032 MB / 434.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4506, allocations: 0 / 434.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.4512, allocations: 151.9 kB / 435.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009192/0.4522, allocations: 393 kB / 435.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.22e-05/0.4523, allocations: 35.97 kB / 435.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006623/0.4589, allocations: 6.099 MB / 441.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4589, allocations: 7.969 kB / 441.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004065/0.463, allocations: 2.667 MB / 444.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005942/0.4636, allocations: 235.2 kB / 444.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/0.4638, allocations: 32 kB / 444.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008637/0.4647, allocations: 99.91 kB / 444.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.465, allocations: 92.67 kB / 444.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.518e-05/0.4651, allocations: 38.39 kB / 444.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001496/0.4666, allocations: 0.9474 MB / 445.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4666, allocations: 0 / 445.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002296/0.4689, allocations: 0.6843 MB / 446.4 MB, free: 0.7852 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.004711/0.4736, allocations: 3.66 MB / 450 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003197/0.4768, allocations: 1.828 MB / 451.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.4769, allocations: 4.938 kB / 451.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.4789, allocations: 1.16 MB / 453 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.4807, allocations: 279.1 kB / 453.3 MB, free: 9.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/0.5059, allocations: 17.56 MB / 470.9 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.5081, allocations: 2.227 MB / 473.1 MB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.5093, allocations: 349.2 kB / 473.4 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/0.5105, allocations: 0.8742 MB / 474.3 MB, free: 4.191 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5105, allocations: 0 / 474.3 MB, free: 4.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06223/0.5728, allocations: 35.62 MB / 0.498 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.573, allocations: 245.2 kB / 0.4982 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/3.087, allocations: 0 / 0.4982 GB, free: 0.7188 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat