Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",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.001535/0.001538, allocations: 182.6 kB / 16.4 MB, free: 5.754 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.03/2.03, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001173/0.001173, allocations: 104.4 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.0004231, allocations: 8 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3354, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01499/0.3505, allocations: 10.27 MB / 384.9 MB, free: 37.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009626/0.3602, allocations: 4.061 MB / 389 MB, free: 34.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002557/0.3628, allocations: 60.12 kB / 389 MB, free: 34.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003503/0.3663, allocations: 0.7534 MB / 389.8 MB, free: 33.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004875/0.3713, allocations: 1.102 MB / 390.9 MB, free: 32.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002732/0.374, allocations: 0.5997 MB / 391.5 MB, free: 31.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006659/0.3807, allocations: 2.675 MB / 394.2 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.3843, allocations: 2.18 MB / 396.3 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.3866, allocations: 1.199 MB / 397.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002757/0.3894, allocations: 1.443 MB / 399 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006871/0.3901, allocations: 200 kB / 399.2 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.3919, allocations: 371.7 kB / 399.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007487/0.3926, allocations: 0.7086 MB / 400.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000973/0.3936, allocations: 0.7226 MB / 401 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006533/0.4002, allocations: 5.349 MB / 406.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4002, allocations: 7.938 kB / 406.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4002, allocations: 0 / 406.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001664/0.4004, allocations: 0 / 406.3 MB, free: 17.03 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01337/0.4138, allocations: 3.667 MB / 410 MB, free: 13.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.4139, allocations: 12.03 kB / 410 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001312/0.4152, allocations: 446.9 kB / 410.4 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006366/0.4216, allocations: 0.8116 MB / 411.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005583/0.4272, allocations: 2.13 MB / 413.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/0.4275, allocations: 238.2 kB / 413.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008887/0.4284, allocations: 315.9 kB / 413.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/0.4397, allocations: 4.176 MB / 418.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.4399, allocations: 8 kB / 418.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004475/0.4403, allocations: 127.9 kB / 418.2 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.4405, allocations: 154.3 kB / 418.4 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.451, allocations: 3.589 MB / 422 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03561/0.4867, allocations: 13.19 MB / 435.2 MB, free: 3.648 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.4983, allocations: 6.902 MB / 442.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00844/0.5068, allocations: 3.188 MB / 445.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.5069, allocations: 43.88 kB / 445.3 MB, free: 8.527 MB / 330.7 MB Notification: Performance of pre-optimization done (n=131): time 4.468e-06/0.5069, allocations: 0 / 445.3 MB, free: 8.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=135): time 0.01968/0.5266, allocations: 5.787 MB / 451.1 MB, free: 2.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.5267, allocations: 64.72 kB / 451.1 MB, free: 2.488 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/0.5303, allocations: 1.646 MB / 452.8 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00025/0.5306, allocations: 49.7 kB / 452.8 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.5319, allocations: 1.321 MB / 454.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006247/0.5326, allocations: 473.2 kB / 454.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.5327, allocations: 32 kB / 454.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.533, allocations: 374.8 kB / 455 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/0.535, allocations: 0.691 MB / 455.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/0.5375, allocations: 1.129 MB / 456.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002453/0.5399, allocations: 0.8965 MB / 457.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.54, allocations: 4 kB / 457.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.006251/0.5462, allocations: 2.289 MB / 460 MB, free: 9.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.5463, allocations: 12 kB / 460 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/0.5463, allocations: 16.28 kB / 460.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.5475, allocations: 267.3 kB / 460.3 MB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00289/0.5504, allocations: 383.4 kB / 460.7 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008579/0.559, allocations: 5.767 MB / 466.5 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.5611, allocations: 71.97 kB / 466.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.5614, allocations: 71.98 kB / 466.6 MB, free: 2.352 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002718/0.5641, allocations: 1.005 MB / 467.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000537/0.5647, allocations: 181.8 kB / 467.8 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006772/0.5715, allocations: 2.271 MB / 470.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/0.5716, allocations: 16 kB / 470.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.5716, allocations: 4 kB / 470.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.5716, allocations: 7.922 kB / 470.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.5855, allocations: 5.097 MB / 475.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.5855, allocations: 4 kB / 475.2 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.5873, allocations: 196 kB / 475.4 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.5893, allocations: 450 kB / 475.8 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001941/0.5895, allocations: 39.98 kB / 475.9 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0194/0.609, allocations: 10.18 MB / 486 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.609, allocations: 8.125 kB / 486 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/0.6219, allocations: 3.34 MB / 489.4 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/0.6239, allocations: 418.7 kB / 489.8 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000761/0.6247, allocations: 32 kB / 489.8 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002657/0.6274, allocations: 87.83 kB / 489.9 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007219/0.6282, allocations: 97.11 kB / 490 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002205/0.6284, allocations: 39.98 kB / 490 MB, free: 9.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004323/0.6328, allocations: 1.126 MB / 491.2 MB, free: 8.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.603e-06/0.6328, allocations: 0 / 491.2 MB, free: 8.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005101/0.638, allocations: 0.547 MB / 491.7 MB, free: 8.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.phi) * 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 (98): * Single equations (assignments): 93 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0147/0.6527, allocations: 4.539 MB / 496.3 MB, free: 3.473 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009171/0.6619, allocations: 2.19 MB / 498.5 MB, free: 1.223 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/0.662, allocations: 0 / 498.5 MB, free: 1.223 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006771/0.6688, allocations: 1.603 MB / 0.4883 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005328/0.6742, allocations: 480.7 kB / 0.4888 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3366/1.011, allocations: 24.66 MB / 0.5129 GB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003703/1.015, allocations: 2.293 MB / 0.5151 GB, free: 118.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/1.017, allocations: 1.104 MB / 0.5162 GB, free: 117.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/1.017, allocations: 0 / 0.5162 GB, free: 117.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.817/4.834, allocations: 118.6 MB / 0.632 GB, free: 3.516 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat