Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",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.0008689/0.0008688, allocations: 89.02 kB / 16.31 MB, free: 5.637 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.0009132/0.0009132, allocations: 177.7 kB / 17.2 MB, free: 5.559 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.481/1.481, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002892, allocations: 5.844 kB / 300.9 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1237, allocations: 50.43 MB / 351.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.0235/0.1472, allocations: 20.92 MB / 372.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.1608, allocations: 6.091 MB / 378.4 MB, free: 492 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004203/0.165, allocations: 147.4 kB / 378.5 MB, free: 344 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004217/0.1692, allocations: 1.122 MB / 379.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008395/0.1777, allocations: 1.762 MB / 381.4 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004708/0.1824, allocations: 0.9457 MB / 382.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01272/0.1951, allocations: 7.981 MB / 390.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009479/0.2046, allocations: 5.079 MB / 395.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007698/0.2124, allocations: 2.584 MB / 398 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01027/0.2227, allocations: 3.361 MB / 401.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002785/0.2255, allocations: 444 kB / 401.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005267/0.2308, allocations: 0.6208 MB / 402.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004879/0.2358, allocations: 1.631 MB / 404 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004888/0.2407, allocations: 1.521 MB / 405.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01921/0.26, allocations: 11.67 MB / 417.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.26, allocations: 0 / 417.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.2601, allocations: 0 / 417.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004381/0.2605, allocations: 0 / 417.2 MB, free: 9.441 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03205/0.2926, allocations: 7.499 MB / 424.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.2926, allocations: 8.031 kB / 424.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004387/0.297, allocations: 0.9548 MB / 425.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2357/0.5327, allocations: 1.67 MB / 427.4 MB, free: 55.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009775/0.5426, allocations: 4.515 MB / 431.9 MB, free: 54.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006295/0.5432, allocations: 0.5214 MB / 432.4 MB, free: 54.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00228/0.5455, allocations: 0.6842 MB / 433.1 MB, free: 54.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02221/0.5677, allocations: 9.411 MB / 442.5 MB, free: 51.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/0.5679, allocations: 5.031 kB / 442.5 MB, free: 51.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008625/0.5688, allocations: 290.3 kB / 442.8 MB, free: 51.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000256/0.5691, allocations: 336.7 kB / 443.1 MB, free: 51.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/0.5851, allocations: 8.052 MB / 451.2 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05533/0.6405, allocations: 28.92 MB / 480.1 MB, free: 19.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.6527, allocations: 16.59 MB / 496.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00572/0.6584, allocations: 2.977 MB / 499.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.6735, allocations: 7.768 MB / 0.4955 GB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.101e-05/0.6736, allocations: 64.61 kB / 0.4956 GB, free: 6.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=259): time 4.469e-06/0.6736, allocations: 4 kB / 0.4956 GB, free: 6.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=265): time 0.02472/0.6983, allocations: 11.19 MB / 0.5065 GB, free: 10.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.6984, allocations: 77.5 kB / 0.5066 GB, free: 10.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005533/0.704, allocations: 3.346 MB / 0.5099 GB, free: 7.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005929/0.7046, allocations: 73.7 kB / 0.5099 GB, free: 7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/0.7069, allocations: 3.041 MB / 0.5129 GB, free: 3.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/0.7081, allocations: 0.916 MB / 0.5138 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.7083, allocations: 68 kB / 0.5139 GB, free: 2.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002783/0.7086, allocations: 437.2 kB / 0.5143 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002458/0.7111, allocations: 1.404 MB / 0.5157 GB, free: 1.121 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003154/0.7142, allocations: 2.426 MB / 0.518 GB, free: 14.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003101/0.7173, allocations: 1.852 MB / 0.5198 GB, free: 12.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-05/0.7174, allocations: 8 kB / 0.5198 GB, free: 12.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008615/0.726, allocations: 4.708 MB / 0.5244 GB, free: 7.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.7261, allocations: 25.45 kB / 0.5245 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-05/0.7262, allocations: 32 kB / 0.5245 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/0.7271, allocations: 403 kB / 0.5249 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/0.7303, allocations: 0.7956 MB / 0.5257 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006998/0.7373, allocations: 7.343 MB / 0.5328 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003207/0.7406, allocations: 159.9 kB / 0.533 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005911/0.7412, allocations: 152 kB / 0.5331 GB, free: 14.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004846/0.746, allocations: 2.074 MB / 0.5351 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000945/0.747, allocations: 363.5 kB / 0.5355 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00787/0.7549, allocations: 4.248 MB / 0.5396 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-05/0.7549, allocations: 28 kB / 0.5397 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/0.755, allocations: 12 kB / 0.5397 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.802e-05/0.755, allocations: 15.95 kB / 0.5397 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/0.775, allocations: 9.895 MB / 0.5494 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.775, allocations: 4.125 kB / 0.5494 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/0.7768, allocations: 415.8 kB / 0.5498 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002248/0.7791, allocations: 0.8601 MB / 0.5506 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003237/0.7794, allocations: 75.97 kB / 0.5507 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02231/0.8018, allocations: 16.08 MB / 0.5664 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.779e-05/0.8018, allocations: 7.938 kB / 0.5664 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/0.8173, allocations: 6.063 MB / 0.5723 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/0.8202, allocations: 0.7464 MB / 0.573 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/0.8215, allocations: 64 kB / 0.5731 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002884/0.8244, allocations: 143.9 kB / 0.5732 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006912/0.8251, allocations: 201.9 kB / 0.5734 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/0.8254, allocations: 79.98 kB / 0.5735 GB, free: 3.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005939/0.8313, allocations: 2.263 MB / 0.5757 GB, free: 1.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8314, allocations: 3.938 kB / 0.5757 GB, free: 1.086 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007595/0.839, allocations: 1.14 MB / 0.5768 GB, free: 15.95 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (198): * Single equations (assignments): 191 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0168/0.8558, allocations: 6.724 MB / 0.5834 GB, free: 9.016 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00804/0.8639, allocations: 4.142 MB / 0.5874 GB, free: 4.758 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.8639, allocations: 64 / 0.5874 GB, free: 4.758 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006484/0.8704, allocations: 2.882 MB / 0.5903 GB, free: 1.777 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006076/0.8765, allocations: 0.9721 MB / 0.5912 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2745/1.151, allocations: 35.52 MB / 0.6259 GB, free: 143.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004629/1.156, allocations: 4.225 MB / 0.63 GB, free: 141.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003271/1.159, allocations: 0.841 MB / 0.6308 GB, free: 141.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003823/1.163, allocations: 2.533 MB / 0.6333 GB, free: 139.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.753e-06/1.163, allocations: 0 / 0.6333 GB, free: 139.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1334/1.296, allocations: 94.73 MB / 0.7258 GB, free: 46.77 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/1.296, allocations: 302.6 kB / 0.7261 GB, free: 46.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.247/5.544, allocations: 0 / 0.7261 GB, free: 46.41 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat