Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.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.PolyphaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",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.001202/0.001202, allocations: 96.05 kB / 16.3 MB, free: 5.523 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.001313/0.001313, allocations: 181.7 kB / 17.2 MB, free: 5.457 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.415/1.415, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002592, allocations: 10.64 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09048, allocations: 50.41 MB / 351.2 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance): time 0.004677/0.09521, allocations: 3.755 MB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002947/0.0982, allocations: 1.57 MB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005645/0.09881, allocations: 19.94 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006526/0.09948, allocations: 206.9 kB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.1012, allocations: 0.5528 MB / 357.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.1018, allocations: 166.4 kB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.1038, allocations: 1.185 MB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.1051, allocations: 0.8856 MB / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008877/0.106, allocations: 0.5527 MB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.1074, allocations: 0.7004 MB / 360.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003283/0.1077, allocations: 84 kB / 360.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000705/0.1084, allocations: 183.9 kB / 361.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004213/0.1089, allocations: 394.8 kB / 361.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004698/0.1094, allocations: 324.9 kB / 361.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002652/0.112, allocations: 2.03 MB / 363.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1121, allocations: 4 kB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1121, allocations: 0 / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.544e-05/0.1122, allocations: 0 / 363.8 MB, free: 7.039 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.005312/0.1175, allocations: 1.926 MB / 365.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1175, allocations: 12.03 kB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005028/0.1181, allocations: 206.6 kB / 366 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00191/0.12, allocations: 365.7 kB / 366.3 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002222/0.1222, allocations: 1.028 MB / 367.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.1223, allocations: 106.7 kB / 367.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002608/0.1226, allocations: 136 kB / 367.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003131/0.1257, allocations: 1.882 MB / 369.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.1258, allocations: 0 / 369.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/0.1259, allocations: 56 kB / 369.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.095e-05/0.126, allocations: 49.98 kB / 369.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1789/0.3049, allocations: 1.694 MB / 371.3 MB, free: 23.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.3149, allocations: 5.593 MB / 376.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002848/0.3178, allocations: 2.912 MB / 379.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00257/0.3204, allocations: 1.547 MB / 381.3 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.3205, allocations: 43.06 kB / 381.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.254e-06/0.3205, allocations: 0 / 381.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.003384/0.3239, allocations: 1.438 MB / 382.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.3239, allocations: 90.09 kB / 382.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.3253, allocations: 1.02 MB / 383.9 MB, free: 16.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.3254, allocations: 38.55 kB / 383.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.3258, allocations: 0.68 MB / 384.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.3259, allocations: 187.5 kB / 384.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.3259, allocations: 18.69 kB / 384.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.516e-05/0.326, allocations: 332.1 kB / 385.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/0.3265, allocations: 372 kB / 385.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.3271, allocations: 0.5226 MB / 386 MB, free: 14.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006286/0.3278, allocations: 445.5 kB / 386.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3278, allocations: 1.062 kB / 386.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001627/0.3294, allocations: 1.021 MB / 387.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3295, allocations: 6.812 kB / 387.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.3295, allocations: 5.688 kB / 387.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.3295, allocations: 8.906 kB / 387.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.3303, allocations: 186.1 kB / 387.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.3303, allocations: 16.42 kB / 387.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005457/0.3308, allocations: 91.88 kB / 387.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.3309, allocations: 32.48 kB / 387.8 MB, free: 14.03 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (82): * Single equations (assignments): 82 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007254/0.3316, allocations: 0.5277 MB / 388.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3318, allocations: 87.28 kB / 388.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.333, allocations: 0.6992 MB / 389.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.333, allocations: 5.969 kB / 389.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.333, allocations: 9.438 kB / 389.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.333, allocations: 0.9375 kB / 389.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.3355, allocations: 1.673 MB / 390.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3356, allocations: 0.9688 kB / 390.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.336, allocations: 100 kB / 390.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004207/0.3365, allocations: 149.6 kB / 391.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.3365, allocations: 19.52 kB / 391.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/0.3389, allocations: 2.658 MB / 393.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3389, allocations: 1.938 kB / 393.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.3412, allocations: 1.554 MB / 395.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.3415, allocations: 188.7 kB / 395.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.3416, allocations: 17.7 kB / 395.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005447/0.3422, allocations: 70.19 kB / 395.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3423, allocations: 49.95 kB / 395.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.3424, allocations: 24.03 kB / 395.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008784/0.3433, allocations: 0.7262 MB / 396.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3433, allocations: 0 / 396.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001101/0.3444, allocations: 364.2 kB / 396.7 MB, free: 8.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,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 (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002444/0.3468, allocations: 2.421 MB / 399.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.3481, allocations: 0.7906 MB / 399.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3481, allocations: 8.312 kB / 400 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009172/0.349, allocations: 0.5955 MB / 400.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/0.3498, allocations: 168.4 kB / 400.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.3624, allocations: 11 MB / 411.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/0.364, allocations: 1.523 MB / 413.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008526/0.3649, allocations: 234.7 kB / 413.5 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000677/0.3656, allocations: 483.2 kB / 413.9 MB, free: 7.695 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3656, allocations: 4 kB / 413.9 MB, free: 7.691 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04028/0.4059, allocations: 21.05 MB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.4061, allocations: 229.7 kB / 435.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.658, allocations: 0 / 435.2 MB, free: 2.738 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat does not exist to compare? outputFormat=mat