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.002295/0.0023, allocations: 189.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.339/2.339, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003761, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09496, allocations: 47.57 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.009883/0.1049, allocations: 5.807 MB / 380.4 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005468/0.1104, allocations: 2.132 MB / 382.6 MB, free: 7.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007853/0.1113, allocations: 39.81 kB / 382.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1124, allocations: 350.1 kB / 383 MB, free: 6.965 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.115, allocations: 0.7048 MB / 383.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.116, allocations: 271.6 kB / 383.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004237/0.1203, allocations: 2.012 MB / 385.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003422/0.1237, allocations: 1.972 MB / 387.9 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001852/0.1256, allocations: 0.9692 MB / 388.9 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.258/0.3837, allocations: 1.165 MB / 390 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008395/0.3846, allocations: 153.5 kB / 390.2 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.3862, allocations: 254.7 kB / 390.4 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001431/0.3877, allocations: 0.6095 MB / 391.1 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001555/0.3893, allocations: 0.5509 MB / 391.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00738/0.3967, allocations: 3.714 MB / 395.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3967, allocations: 0 / 395.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3968, allocations: 1.219 kB / 395.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001874/0.3969, allocations: 0 / 395.3 MB, free: 10.06 MB / 282.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.01353/0.4105, allocations: 3.134 MB / 398.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.4106, allocations: 8.688 kB / 398.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002183/0.4128, allocations: 441.3 kB / 398.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006578/0.4194, allocations: 0.6898 MB / 399.6 MB, free: 8.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005827/0.4253, allocations: 1.641 MB / 401.2 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002806/0.4256, allocations: 200.4 kB / 401.4 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/0.4269, allocations: 261.5 kB / 401.7 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01403/0.441, allocations: 3.583 MB / 405.3 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.4411, allocations: 1.125 kB / 405.3 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006777/0.4418, allocations: 110.4 kB / 405.4 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001647/0.442, allocations: 106.5 kB / 405.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01103/0.453, allocations: 3.1 MB / 408.6 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0305/0.4836, allocations: 10.57 MB / 419.1 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009402/0.4931, allocations: 4.692 MB / 423.8 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007753/0.5009, allocations: 2.499 MB / 426.3 MB, free: 6.711 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.501, allocations: 54.47 kB / 426.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 4.929e-06/0.501, allocations: 0 / 426.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=108): time 0.01246/0.5135, allocations: 2.761 MB / 429.1 MB, free: 3.867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.5136, allocations: 90.11 kB / 429.2 MB, free: 3.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003419/0.517, allocations: 1.354 MB / 430.6 MB, free: 2.395 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003209/0.5174, allocations: 43.48 kB / 430.6 MB, free: 2.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001131/0.5185, allocations: 1.124 MB / 431.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006692/0.5192, allocations: 378.3 kB / 432.1 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.5194, allocations: 28 kB / 432.2 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.5196, allocations: 366.2 kB / 432.5 MB, free: 468 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.5215, allocations: 0.5962 MB / 433.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.5238, allocations: 0.8577 MB / 434 MB, free: 14.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/0.5261, allocations: 0.7339 MB / 434.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/0.5262, allocations: 4 kB / 434.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006122/0.5323, allocations: 1.936 MB / 436.6 MB, free: 12.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.5324, allocations: 11.98 kB / 436.7 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/0.5324, allocations: 8 kB / 436.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/0.5342, allocations: 398.2 kB / 437 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.5362, allocations: 238.8 kB / 437.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.5486, allocations: 6.23 MB / 443.5 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.5507, allocations: 142.8 kB / 443.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003621/0.5511, allocations: 51.98 kB / 443.7 MB, free: 4.996 MB / 314.7 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.00298/0.5541, allocations: 0.8656 MB / 444.6 MB, free: 4.133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006357/0.5548, allocations: 134.3 kB / 444.7 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005704/0.5605, allocations: 1.759 MB / 446.5 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/0.5606, allocations: 8 kB / 446.5 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.077e-05/0.5606, allocations: 8 kB / 446.5 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/0.5606, allocations: 3.984 kB / 446.5 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.5736, allocations: 4.104 MB / 450.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.5737, allocations: 4.156 kB / 450.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.5751, allocations: 146.8 kB / 450.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00175/0.5769, allocations: 393.5 kB / 451.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/0.5771, allocations: 35.97 kB / 451.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/0.5894, allocations: 6.241 MB / 457.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5895, allocations: 0 / 457.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007815/0.5973, allocations: 2.695 MB / 460.1 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008048/0.5982, allocations: 247.2 kB / 460.3 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.5987, allocations: 35.98 kB / 460.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.6003, allocations: 99.91 kB / 460.5 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/0.6008, allocations: 88.73 kB / 460.5 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.6009, allocations: 35.98 kB / 460.6 MB, free: 3.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002397/0.6033, allocations: 0.9431 MB / 461.5 MB, free: 2.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.535e-06/0.6034, allocations: 0 / 461.5 MB, free: 2.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003413/0.6068, allocations: 0.6761 MB / 462.2 MB, free: 2.168 MB / 330.7 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,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].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.008512/0.6154, allocations: 3.707 MB / 465.9 MB, free: 14.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005465/0.6209, allocations: 1.852 MB / 467.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.621, allocations: 0.9375 kB / 467.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003452/0.6244, allocations: 1.174 MB / 468.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/0.6271, allocations: 288.4 kB / 469.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0374/0.6646, allocations: 17.5 MB / 486.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/0.6684, allocations: 2.163 MB / 488.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002386/0.6708, allocations: 0.882 MB / 489.8 MB, free: 6.082 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6709, allocations: 4 kB / 489.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.729/4.4, allocations: 63.56 MB / 0.5404 GB, free: 134.9 MB / 410.7 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