Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001038, allocations: 90.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 205.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002264, allocations: 4 kB / 306.7 MB, free: 1.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.09751, allocations: 51.49 MB / 358.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.1757/0.2733, allocations: 21.68 MB / 379.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.286, allocations: 7.291 MB / 387.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005099/0.2911, allocations: 156.8 kB / 387.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004815/0.296, allocations: 1.328 MB / 388.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.308, allocations: 2.25 MB / 390.9 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004783/0.3128, allocations: 1.021 MB / 392 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01334/0.3262, allocations: 6.117 MB / 398.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009065/0.3353, allocations: 5.22 MB / 403.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005574/0.3409, allocations: 2.711 MB / 406 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006587/0.3475, allocations: 3.258 MB / 409.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002263/0.3498, allocations: 463.9 kB / 409.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004489/0.3543, allocations: 0.6326 MB / 410.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003615/0.358, allocations: 1.631 MB / 412 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004652/0.3627, allocations: 1.623 MB / 413.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02077/0.3835, allocations: 12.12 MB / 425.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3835, allocations: 0 / 425.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3835, allocations: 0 / 425.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004293/0.3839, allocations: 0 / 425.7 MB, free: 8.715 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02063/0.4046, allocations: 7.953 MB / 433.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.4046, allocations: 8.031 kB / 433.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00239/0.407, allocations: 0.9919 MB / 434.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008845/0.4159, allocations: 1.762 MB / 436.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.4262, allocations: 4.84 MB / 441.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005687/0.4268, allocations: 0.5416 MB / 441.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001765/0.4286, allocations: 0.7068 MB / 442.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02265/0.4513, allocations: 9.68 MB / 452.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4515, allocations: 19.89 kB / 452.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00071/0.4522, allocations: 292 kB / 452.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003228/0.4525, allocations: 358.6 kB / 452.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.4682, allocations: 8.279 MB / 461.1 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05176/0.52, allocations: 30.89 MB / 492 MB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01731/0.5373, allocations: 17.22 MB / 0.4973 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/0.5518, allocations: 7.176 MB / 0.5043 GB, free: 10.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/0.5519, allocations: 64.91 kB / 0.5044 GB, free: 10.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=297): time 4.549e-06/0.5519, allocations: 0 / 0.5044 GB, free: 10.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=307): time 0.02886/0.5807, allocations: 11.92 MB / 0.516 GB, free: 14.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.5809, allocations: 81.83 kB / 0.5161 GB, free: 14.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007018/0.5879, allocations: 3.614 MB / 0.5196 GB, free: 10.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/0.5883, allocations: 77.7 kB / 0.5197 GB, free: 10.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003156/0.5914, allocations: 3.24 MB / 0.5229 GB, free: 7.426 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001598/0.593, allocations: 1.044 MB / 0.5239 GB, free: 6.367 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.5932, allocations: 79.94 kB / 0.524 GB, free: 6.289 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000311/0.5935, allocations: 458.1 kB / 0.5244 GB, free: 5.836 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/0.5964, allocations: 1.526 MB / 0.5259 GB, free: 4.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/0.6001, allocations: 2.628 MB / 0.5285 GB, free: 1.195 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3655/0.9656, allocations: 2.008 MB / 0.5304 GB, free: 131.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-05/0.9657, allocations: 9.375 kB / 0.5304 GB, free: 131.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009716/0.9754, allocations: 5.129 MB / 0.5354 GB, free: 131.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.207e-05/0.9755, allocations: 20.11 kB / 0.5355 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.393e-05/0.9756, allocations: 35.12 kB / 0.5355 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009446/0.9765, allocations: 413.3 kB / 0.5359 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003603/0.9802, allocations: 0.8903 MB / 0.5368 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005611/0.9858, allocations: 7.506 MB / 0.5441 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.9892, allocations: 188.1 kB / 0.5443 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003812/0.9896, allocations: 163.8 kB / 0.5444 GB, free: 124.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 157 * 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 (462): * Single equations (assignments): 456 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004049/0.9937, allocations: 2.149 MB / 0.5465 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000772/0.9944, allocations: 421.9 kB / 0.5469 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007819/1.002, allocations: 4.646 MB / 0.5515 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/1.002, allocations: 29.31 kB / 0.5515 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/1.002, allocations: 12.31 kB / 0.5515 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.43e-05/1.002, allocations: 20.11 kB / 0.5515 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/1.023, allocations: 10.87 MB / 0.5621 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.023, allocations: 11.73 kB / 0.5621 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/1.025, allocations: 493 kB / 0.5626 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/1.027, allocations: 0.8546 MB / 0.5634 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/1.027, allocations: 82.28 kB / 0.5635 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/1.039, allocations: 16.42 MB / 0.5796 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/1.04, allocations: 3.625 kB / 0.5796 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009354/1.049, allocations: 7.278 MB / 0.5867 GB, free: 97.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/1.051, allocations: 0.8091 MB / 0.5875 GB, free: 96.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006946/1.052, allocations: 75.98 kB / 0.5875 GB, free: 96.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/1.054, allocations: 155.9 kB / 0.5877 GB, free: 96.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005033/1.054, allocations: 229.8 kB / 0.5879 GB, free: 96.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/1.054, allocations: 85.19 kB / 0.588 GB, free: 96.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003399/1.058, allocations: 2.438 MB / 0.5904 GB, free: 93.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.058, allocations: 0 / 0.5904 GB, free: 93.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004406/1.062, allocations: 1.229 MB / 0.5916 GB, free: 92.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (237): * Single equations (assignments): 230 * 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 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008769/1.071, allocations: 9.166 MB / 0.6005 GB, free: 83.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006089/1.077, allocations: 4.475 MB / 0.6049 GB, free: 78.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.077, allocations: 4 kB / 0.6049 GB, free: 78.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003866/1.081, allocations: 3.079 MB / 0.6079 GB, free: 75.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/1.086, allocations: 1.095 MB / 0.609 GB, free: 74.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0806/1.166, allocations: 62.4 MB / 0.6699 GB, free: 9.035 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006678/1.173, allocations: 4.53 MB / 0.6743 GB, free: 4.465 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00413/1.177, allocations: 0.9146 MB / 0.6752 GB, free: 3.547 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004159/1.181, allocations: 2.764 MB / 0.6779 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/1.182, allocations: 0 / 0.6779 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3787/1.56, allocations: 104.1 MB / 0.7796 GB, free: 103.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/1.56, allocations: 292.2 kB / 0.7799 GB, free: 103.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.48/6.041, allocations: 3.938 kB / 0.7799 GB, free: 103.4 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat