Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001188/0.001188, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002308, allocations: 7.984 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2446/0.351, allocations: 22.95 MB / 381.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02005/0.3711, allocations: 8.047 MB / 389.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007789/0.379, allocations: 182.8 kB / 389.4 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008138/0.3871, allocations: 1.687 MB / 391.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.3995, allocations: 2.752 MB / 393.8 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006163/0.4057, allocations: 1.462 MB / 395.3 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01672/0.4224, allocations: 8.068 MB / 403.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03396/0.4564, allocations: 17.17 MB / 420.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007988/0.4645, allocations: 3.539 MB / 424.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00805/0.4725, allocations: 3.972 MB / 428.1 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002469/0.475, allocations: 0.5977 MB / 428.7 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004772/0.4798, allocations: 0.9136 MB / 429.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002594/0.4824, allocations: 1.748 MB / 431.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003816/0.4863, allocations: 1.958 MB / 433.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01863/0.5049, allocations: 17.37 MB / 450.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.505, allocations: 4 kB / 450.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.505, allocations: 0 / 450.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005678/0.5055, allocations: 0 / 450.6 MB, free: 15.75 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.02753/0.5331, allocations: 9.89 MB / 460.5 MB, free: 5.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.5331, allocations: 8.031 kB / 460.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005476/0.5386, allocations: 1.543 MB / 462.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/0.5683, allocations: 5.533 MB / 467.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/0.5821, allocations: 6.067 MB / 473.7 MB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007807/0.583, allocations: 0.7103 MB / 474.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003846/0.5868, allocations: 0.9217 MB / 475.3 MB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03836/0.6252, allocations: 14.92 MB / 490.2 MB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/0.6255, allocations: 19.89 kB / 490.3 MB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002476/0.628, allocations: 384 kB / 490.6 MB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005222/0.6286, allocations: 0.5195 MB / 491.2 MB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03048/0.659, allocations: 13.66 MB / 0.493 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5271/1.186, allocations: 48.17 MB / 0.54 GB, free: 107.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02275/1.209, allocations: 28.53 MB / 0.5679 GB, free: 81.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007275/1.21, allocations: 327.5 kB / 0.5682 GB, free: 81.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.93e-05/1.21, allocations: 73.42 kB / 0.5683 GB, free: 81.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.284e-06/1.21, allocations: 0 / 0.5683 GB, free: 81.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.03399/1.244, allocations: 14.62 MB / 0.5825 GB, free: 79.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/1.244, allocations: 89.77 kB / 0.5826 GB, free: 79.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005291/1.249, allocations: 3.554 MB / 0.5861 GB, free: 78.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005987/1.25, allocations: 89.08 kB / 0.5862 GB, free: 78.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002173/1.252, allocations: 4.049 MB / 0.5901 GB, free: 75.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/1.253, allocations: 1.339 MB / 0.5914 GB, free: 74.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/1.254, allocations: 118.9 kB / 0.5916 GB, free: 73.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002875/1.254, allocations: 0.5551 MB / 0.5921 GB, free: 73.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003406/1.257, allocations: 2.583 MB / 0.5946 GB, free: 72.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/1.262, allocations: 5.036 MB / 0.5995 GB, free: 68.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004771/1.267, allocations: 3.77 MB / 0.6032 GB, free: 66.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.582e-05/1.267, allocations: 26.31 kB / 0.6032 GB, free: 66.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01314/1.28, allocations: 8.593 MB / 0.6116 GB, free: 62.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.819e-05/1.28, allocations: 46.06 kB / 0.6117 GB, free: 62.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/1.28, allocations: 83.59 kB / 0.6118 GB, free: 62.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/1.282, allocations: 0.8239 MB / 0.6126 GB, free: 62.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/1.287, allocations: 1.374 MB / 0.6139 GB, free: 62.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008685/1.295, allocations: 7.163 MB / 0.6209 GB, free: 56.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005142/1.3, allocations: 334.5 kB / 0.6212 GB, free: 56.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009899/1.301, allocations: 304 kB / 0.6215 GB, free: 55.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (724): * Single equations (assignments): 723 * 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.007025/1.308, allocations: 3.513 MB / 0.6249 GB, free: 52.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009567/1.309, allocations: 411 kB / 0.6253 GB, free: 52.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008566/1.318, allocations: 5.979 MB / 0.6312 GB, free: 46.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/1.318, allocations: 44 kB / 0.6312 GB, free: 45.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/1.318, allocations: 8 kB / 0.6312 GB, free: 45.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-05/1.318, allocations: 19.92 kB / 0.6312 GB, free: 45.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02354/1.342, allocations: 14.87 MB / 0.6458 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/1.342, allocations: 4 kB / 0.6458 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/1.344, allocations: 0.6943 MB / 0.6464 GB, free: 30.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/1.346, allocations: 0.6916 MB / 0.6471 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002875/1.346, allocations: 87.97 kB / 0.6472 GB, free: 29.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006892/1.353, allocations: 6.327 MB / 0.6534 GB, free: 22.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.353, allocations: 7.938 kB / 0.6534 GB, free: 22.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/1.364, allocations: 9.168 MB / 0.6623 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00231/1.367, allocations: 0.8863 MB / 0.6632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006476/1.367, allocations: 72 kB / 0.6633 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/1.369, allocations: 195.8 kB / 0.6635 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004252/1.37, allocations: 262.7 kB / 0.6637 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/1.37, allocations: 111.9 kB / 0.6638 GB, free: 12.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003337/1.373, allocations: 2.369 MB / 0.6661 GB, free: 9.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.373, allocations: 10.89 kB / 0.6661 GB, free: 9.688 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006226/1.379, allocations: 1.55 MB / 0.6677 GB, free: 8.141 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (377): * Single equations (assignments): 376 * 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.01227/1.392, allocations: 10.92 MB / 0.6783 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0102/1.402, allocations: 6.468 MB / 0.6846 GB, free: 6.559 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.402, allocations: 8 kB / 0.6846 GB, free: 6.551 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00461/1.407, allocations: 2.918 MB / 0.6875 GB, free: 3.625 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/1.411, allocations: 0.8554 MB / 0.6883 GB, free: 2.793 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3002/1.711, allocations: 101.2 MB / 0.7872 GB, free: 81.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006213/1.717, allocations: 6.122 MB / 0.7931 GB, free: 78.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004998/1.722, allocations: 1.884 MB / 0.795 GB, free: 78.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003419/1.726, allocations: 3.204 MB / 0.7981 GB, free: 75.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/1.726, allocations: 0 / 0.7981 GB, free: 75.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4575/2.183, allocations: 115.6 MB / 0.911 GB, free: 140.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/2.183, allocations: 258.1 kB / 0.9112 GB, free: 139.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.163/6.346, allocations: 0 / 0.9112 GB, free: 139.9 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat