Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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 3.2.3+maint.om/package.mo", uses=false) 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 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.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 97.17 kB / 16.94 MB, free: 5.98 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.001227/0.001227, allocations: 183 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004544/0.0004545, allocations: 11.28 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08783, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01147/0.09934, allocations: 10.27 MB / 338.7 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007679/0.1071, allocations: 4.062 MB / 342.8 MB, free: 5.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.109, allocations: 63.69 kB / 342.8 MB, free: 5.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.1115, allocations: 0.7579 MB / 343.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003376/0.1149, allocations: 1.09 MB / 344.7 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.1165, allocations: 0.6002 MB / 345.3 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004148/0.1207, allocations: 2.683 MB / 348 MB, free: 412 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.1232, allocations: 2.174 MB / 350.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001719/0.125, allocations: 1.203 MB / 351.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/0.1267, allocations: 1.443 MB / 352.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003358/0.127, allocations: 200 kB / 353 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009181/0.128, allocations: 367.8 kB / 353.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006238/0.1286, allocations: 0.7047 MB / 354 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007026/0.1293, allocations: 0.7187 MB / 354.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004958/0.1343, allocations: 5.349 MB / 360.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1343, allocations: 0 / 360.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1343, allocations: 0 / 360.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001506/0.1345, allocations: 0 / 360.1 MB, free: 4.184 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.009037/0.1435, allocations: 3.665 MB / 363.8 MB, free: 460 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1436, allocations: 8.031 kB / 363.8 MB, free: 452 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007809/0.1444, allocations: 447 kB / 364.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003965/0.1483, allocations: 0.8154 MB / 365 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003764/0.1521, allocations: 2.146 MB / 367.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.1523, allocations: 230.2 kB / 367.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004594/0.1528, allocations: 315.9 kB / 367.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007761/0.1605, allocations: 4.184 MB / 371.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.437e-05/0.1606, allocations: 7.844 kB / 371.9 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003077/0.161, allocations: 132 kB / 372 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/0.1611, allocations: 154.3 kB / 372.2 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006177/0.1673, allocations: 3.585 MB / 375.8 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1921/0.3595, allocations: 13.19 MB / 389 MB, free: 42.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005985/0.3655, allocations: 6.886 MB / 395.8 MB, free: 36.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005992/0.3715, allocations: 3.188 MB / 399 MB, free: 34.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3716, allocations: 57.27 kB / 399.1 MB, free: 34.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 3.567e-06/0.3716, allocations: 3.828 kB / 399.1 MB, free: 34.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=135): time 0.0109/0.3825, allocations: 5.779 MB / 404.9 MB, free: 30.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.3826, allocations: 68.41 kB / 404.9 MB, free: 30.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.3848, allocations: 1.643 MB / 406.6 MB, free: 29.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001604/0.3849, allocations: 49.64 kB / 406.6 MB, free: 29.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006679/0.3856, allocations: 1.374 MB / 408 MB, free: 28.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.3859, allocations: 475.7 kB / 408.5 MB, free: 28.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-05/0.386, allocations: 31.91 kB / 408.5 MB, free: 28.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.3861, allocations: 369.7 kB / 408.9 MB, free: 27.83 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.3871, allocations: 0.6839 MB / 409.5 MB, free: 27.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.3883, allocations: 1.135 MB / 410.7 MB, free: 26.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.3895, allocations: 0.8959 MB / 411.6 MB, free: 26.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.3895, allocations: 7.438 kB / 411.6 MB, free: 26.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003273/0.3928, allocations: 2.413 MB / 414 MB, free: 24.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.3928, allocations: 11.12 kB / 414 MB, free: 24.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.3928, allocations: 14.5 kB / 414 MB, free: 24.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006054/0.3934, allocations: 263 kB / 414.3 MB, free: 24.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.3947, allocations: 383 kB / 414.6 MB, free: 24.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/0.3986, allocations: 5.752 MB / 420.4 MB, free: 18.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.4, allocations: 84.05 kB / 420.5 MB, free: 18.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.4001, allocations: 68 kB / 420.5 MB, free: 18.57 MB / 318.1 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.001609/0.4017, allocations: 1.001 MB / 421.6 MB, free: 17.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002892/0.402, allocations: 179 kB / 421.7 MB, free: 17.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003106/0.4051, allocations: 2.268 MB / 424 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4052, allocations: 16 kB / 424 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4052, allocations: 4 kB / 424 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4052, allocations: 7.969 kB / 424 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00686/0.4121, allocations: 5.102 MB / 429.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4121, allocations: 8.125 kB / 429.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007474/0.4129, allocations: 191.8 kB / 429.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009264/0.4138, allocations: 450.1 kB / 429.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.104e-05/0.4139, allocations: 39.98 kB / 429.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007672/0.4216, allocations: 10.19 MB / 440 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.4216, allocations: 7.969 kB / 440 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005611/0.4272, allocations: 3.353 MB / 443.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.4284, allocations: 410.7 kB / 443.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.4286, allocations: 39.98 kB / 443.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008009/0.4294, allocations: 71.91 kB / 443.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.4297, allocations: 105.2 kB / 444 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/0.4298, allocations: 39.98 kB / 444 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001736/0.4315, allocations: 1.126 MB / 445.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4316, allocations: 0 / 445.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002053/0.4336, allocations: 0.5455 MB / 445.7 MB, free: 8.426 MB / 334.1 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.005585/0.4392, allocations: 4.538 MB / 450.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003625/0.4429, allocations: 2.183 MB / 452.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4429, allocations: 0 / 452.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/0.4453, allocations: 1.607 MB / 454 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/0.4474, allocations: 482.4 kB / 454.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03508/0.4825, allocations: 24.73 MB / 479.2 MB, free: 5.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/0.4847, allocations: 2.336 MB / 481.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001454/0.4862, allocations: 391.9 kB / 481.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/0.4876, allocations: 1.097 MB / 483 MB, free: 1.77 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4876, allocations: 0 / 483 MB, free: 1.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07858/0.5662, allocations: 46.42 MB / 0.517 GB, free: 3.27 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.5664, allocations: 218.5 kB / 0.5172 GB, free: 3.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/3.002, allocations: 0 / 0.5172 GB, free: 3.035 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat