Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.00102/0.00102, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.0008684/0.0008684, allocations: 180.7 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.312/1.312, allocations: 205.4 MB / 224 MB, free: 13.17 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.000458/0.000458, allocations: 15.94 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09728, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02332/0.1206, allocations: 23.41 MB / 351.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.1395, allocations: 8.122 MB / 360 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005866/0.1455, allocations: 171.4 kB / 360.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00676/0.1522, allocations: 1.714 MB / 361.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.1639, allocations: 2.937 MB / 364.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00594/0.1699, allocations: 1.435 MB / 366.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.1847, allocations: 8.34 MB / 374.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2402/0.425, allocations: 17.24 MB / 391.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007665/0.4327, allocations: 3.699 MB / 395.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008097/0.4408, allocations: 4.247 MB / 399.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002901/0.4438, allocations: 0.609 MB / 400.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005021/0.4488, allocations: 0.9014 MB / 401.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003347/0.4522, allocations: 1.905 MB / 403.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003969/0.4562, allocations: 2.044 MB / 405.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01684/0.473, allocations: 17.78 MB / 423 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4731, allocations: 0 / 423 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4731, allocations: 0 / 423 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007019/0.4738, allocations: 0 / 423 MB, free: 0.5938 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02998/0.5038, allocations: 10.31 MB / 433.3 MB, free: 7.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.5038, allocations: 12.03 kB / 433.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006569/0.5104, allocations: 1.642 MB / 435 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04518/0.5556, allocations: 8.518 MB / 443.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.5712, allocations: 5.835 MB / 449.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008996/0.5722, allocations: 0.743 MB / 450.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005192/0.5774, allocations: 0.98 MB / 451 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04567/0.6231, allocations: 16.41 MB / 467.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003878/0.6235, allocations: 23.89 kB / 467.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003493/0.627, allocations: 413.8 kB / 467.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006666/0.6277, allocations: 0.6144 MB / 468.5 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03577/0.6635, allocations: 15.88 MB / 484.4 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09642/0.76, allocations: 52.24 MB / 0.524 GB, free: 4.645 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3844/1.144, allocations: 52.18 MB / 0.575 GB, free: 72.3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0179/1.162, allocations: 9.611 MB / 0.5844 GB, free: 70.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/1.162, allocations: 67.67 kB / 0.5844 GB, free: 70.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 5.71e-06/1.163, allocations: 3.094 kB / 0.5844 GB, free: 70.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02268/1.185, allocations: 12.85 MB / 0.597 GB, free: 64.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/1.185, allocations: 84.09 kB / 0.5971 GB, free: 64.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00524/1.191, allocations: 3.999 MB / 0.601 GB, free: 63.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003996/1.191, allocations: 77.52 kB / 0.6011 GB, free: 63.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002333/1.193, allocations: 4.625 MB / 0.6056 GB, free: 59.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.194, allocations: 1.027 MB / 0.6066 GB, free: 59.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/1.195, allocations: 120.4 kB / 0.6067 GB, free: 58.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002656/1.195, allocations: 0.5549 MB / 0.6072 GB, free: 58.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/1.198, allocations: 2.464 MB / 0.6096 GB, free: 57.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004284/1.203, allocations: 5.589 MB / 0.6151 GB, free: 52.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004494/1.207, allocations: 3.76 MB / 0.6188 GB, free: 50.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.517e-05/1.207, allocations: 31 kB / 0.6188 GB, free: 50.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01206/1.219, allocations: 8.78 MB / 0.6274 GB, free: 46.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.062e-05/1.219, allocations: 52 kB / 0.6274 GB, free: 46.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/1.219, allocations: 113.9 kB / 0.6275 GB, free: 46.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/1.221, allocations: 0.8488 MB / 0.6284 GB, free: 45.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004234/1.226, allocations: 1.435 MB / 0.6298 GB, free: 44.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008607/1.234, allocations: 7.159 MB / 0.6367 GB, free: 36.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00536/1.24, allocations: 351.3 kB / 0.6371 GB, free: 36.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009209/1.24, allocations: 356 kB / 0.6374 GB, free: 36.08 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006843/1.247, allocations: 3.688 MB / 0.641 GB, free: 32.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009528/1.248, allocations: 406.9 kB / 0.6414 GB, free: 31.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007432/1.256, allocations: 5.185 MB / 0.6465 GB, free: 26.74 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/1.256, allocations: 28 kB / 0.6465 GB, free: 26.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.256, allocations: 11.94 kB / 0.6465 GB, free: 26.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/1.256, allocations: 15.94 kB / 0.6465 GB, free: 26.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0214/1.277, allocations: 12.4 MB / 0.6586 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/1.277, allocations: 0 / 0.6586 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/1.279, allocations: 0.5461 MB / 0.6592 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001753/1.281, allocations: 0.6879 MB / 0.6598 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003174/1.282, allocations: 67.92 kB / 0.6599 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007054/1.289, allocations: 6.316 MB / 0.6661 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.289, allocations: 7.938 kB / 0.6661 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/1.299, allocations: 7.841 MB / 0.6737 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/1.301, allocations: 0.8354 MB / 0.6746 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005487/1.302, allocations: 59.98 kB / 0.6746 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/1.303, allocations: 171.9 kB / 0.6748 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003911/1.304, allocations: 210 kB / 0.675 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/1.304, allocations: 91.97 kB / 0.6751 GB, free: 12.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004113/1.308, allocations: 2.618 MB / 0.6776 GB, free: 10.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.308, allocations: 0 / 0.6776 GB, free: 10.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006605/1.315, allocations: 1.557 MB / 0.6791 GB, free: 8.809 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (274): * Single equations (assignments): 273 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01211/1.327, allocations: 9.291 MB / 0.6882 GB, free: 15.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01033/1.337, allocations: 6.172 MB / 0.6942 GB, free: 9.145 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/1.337, allocations: 0 / 0.6942 GB, free: 9.145 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003916/1.341, allocations: 2.522 MB / 0.6967 GB, free: 6.605 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004233/1.346, allocations: 0.85 MB / 0.6975 GB, free: 5.758 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2967/1.642, allocations: 120.7 MB / 0.8154 GB, free: 60 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007681/1.65, allocations: 6.36 MB / 0.8216 GB, free: 57.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005521/1.656, allocations: 1.981 MB / 0.8235 GB, free: 56.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00475/1.66, allocations: 3.385 MB / 0.8269 GB, free: 53.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.433e-06/1.66, allocations: 4 kB / 0.8269 GB, free: 53.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.317/1.977, allocations: 114.1 MB / 0.9383 GB, free: 111.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.978, allocations: 264.4 kB / 0.9385 GB, free: 111 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.313/6.291, allocations: 0 / 0.9385 GB, free: 111 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat