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.001051/0.001051, allocations: 96.45 kB / 16.95 MB, free: 6.062 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.0013/0.0013, allocations: 179 kB / 17.84 MB, free: 5.699 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.517/1.517, allocations: 205.4 MB / 224 MB, free: 13.02 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.0006577/0.0006577, allocations: 12 kB / 280.9 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1264, allocations: 47.58 MB / 328.5 MB, free: 3.926 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02715/0.1536, allocations: 25.43 MB / 353.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01843/0.1721, allocations: 7.862 MB / 361.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005737/0.1779, allocations: 175.4 kB / 362 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006305/0.1842, allocations: 1.375 MB / 363.3 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01086/0.1951, allocations: 2.504 MB / 365.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004989/0.2001, allocations: 1.244 MB / 367.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01732/0.2175, allocations: 11.48 MB / 378.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.25/0.4675, allocations: 17.45 MB / 396 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008284/0.4758, allocations: 4.031 MB / 400 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009641/0.4855, allocations: 4.705 MB / 404.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003564/0.4891, allocations: 0.6085 MB / 405.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005594/0.4947, allocations: 0.9553 MB / 406.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003484/0.4983, allocations: 1.966 MB / 408.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004845/0.5031, allocations: 2.041 MB / 410.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01739/0.5206, allocations: 17.84 MB / 428.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.5206, allocations: 4 kB / 428.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.5206, allocations: 0 / 428.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0007363/0.5214, allocations: 0 / 428.2 MB, free: 15.47 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03016/0.5515, allocations: 10.34 MB / 438.5 MB, free: 6.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.5516, allocations: 23.3 kB / 438.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007701/0.5593, allocations: 1.637 MB / 440.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/0.6057, allocations: 8.609 MB / 448.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/0.6197, allocations: 5.829 MB / 454.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008807/0.6206, allocations: 0.7416 MB / 455.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005251/0.6259, allocations: 0.9864 MB / 456.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04324/0.6692, allocations: 16.5 MB / 472.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002675/0.6695, allocations: 23.64 kB / 472.8 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001614/0.6711, allocations: 414.5 kB / 473.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006524/0.6718, allocations: 0.6068 MB / 473.8 MB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03651/0.7083, allocations: 15.88 MB / 489.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5628/1.271, allocations: 52.27 MB / 0.5293 GB, free: 111.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03146/1.303, allocations: 52.19 MB / 0.5803 GB, free: 61.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/1.308, allocations: 3.447 MB / 0.5836 GB, free: 61.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/1.323, allocations: 9.418 MB / 0.5928 GB, free: 60.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/1.323, allocations: 59.53 kB / 0.5929 GB, free: 60.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 5.52e-06/1.323, allocations: 0 / 0.5929 GB, free: 60.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.02687/1.35, allocations: 13.76 MB / 0.6063 GB, free: 55.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/1.35, allocations: 78.97 kB / 0.6064 GB, free: 55.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/1.355, allocations: 4.037 MB / 0.6103 GB, free: 54.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003222/1.355, allocations: 73.02 kB / 0.6104 GB, free: 53.95 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00233/1.358, allocations: 4.633 MB / 0.6149 GB, free: 50.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009581/1.359, allocations: 0.9897 MB / 0.6159 GB, free: 49.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/1.359, allocations: 126.2 kB / 0.616 GB, free: 49.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002684/1.359, allocations: 0.5439 MB / 0.6165 GB, free: 49.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/1.363, allocations: 2.423 MB / 0.6189 GB, free: 48.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004316/1.367, allocations: 5.582 MB / 0.6244 GB, free: 43.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004264/1.371, allocations: 3.71 MB / 0.628 GB, free: 40.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.858e-05/1.371, allocations: 31.72 kB / 0.628 GB, free: 40.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.0132/1.385, allocations: 8.686 MB / 0.6365 GB, free: 36.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.69e-05/1.385, allocations: 52.97 kB / 0.6365 GB, free: 36.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/1.385, allocations: 112 kB / 0.6367 GB, free: 35.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/1.387, allocations: 0.8596 MB / 0.6375 GB, free: 35.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/1.391, allocations: 1.405 MB / 0.6389 GB, free: 33.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00855/1.4, allocations: 6.986 MB / 0.6457 GB, free: 26.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004955/1.405, allocations: 351.3 kB / 0.646 GB, free: 26.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001101/1.406, allocations: 352 kB / 0.6464 GB, free: 25.83 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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.006922/1.413, allocations: 3.678 MB / 0.6499 GB, free: 22.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/1.414, allocations: 407 kB / 0.6503 GB, free: 21.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008833/1.423, allocations: 5.062 MB / 0.6553 GB, free: 16.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.941e-05/1.423, allocations: 28 kB / 0.6553 GB, free: 16.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/1.423, allocations: 11.95 kB / 0.6553 GB, free: 16.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-05/1.423, allocations: 15.94 kB / 0.6553 GB, free: 16.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/1.445, allocations: 12.18 MB / 0.6672 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.445, allocations: 4 kB / 0.6672 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/1.447, allocations: 0.5187 MB / 0.6677 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001766/1.449, allocations: 0.688 MB / 0.6684 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000317/1.449, allocations: 63.98 kB / 0.6685 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008434/1.457, allocations: 6.145 MB / 0.6745 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/1.457, allocations: 8.812 kB / 0.6745 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/1.47, allocations: 7.285 MB / 0.6816 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002363/1.472, allocations: 0.8237 MB / 0.6824 GB, free: 4.465 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/1.474, allocations: 56 kB / 0.6825 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/1.476, allocations: 163.9 kB / 0.6826 GB, free: 4.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005274/1.477, allocations: 205.9 kB / 0.6828 GB, free: 4.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.477, allocations: 91.97 kB / 0.6829 GB, free: 3.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006083/1.483, allocations: 2.641 MB / 0.6855 GB, free: 1.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.072e-06/1.483, allocations: 1.094 kB / 0.6855 GB, free: 1.305 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009744/1.493, allocations: 1.547 MB / 0.687 GB, free: 15.75 MB / 462.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 (263): * Single equations (assignments): 262 * 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.01502/1.508, allocations: 7.971 MB / 0.6948 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.52, allocations: 6.069 MB / 0.7007 GB, free: 1.551 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/1.52, allocations: 1.406 kB / 0.7007 GB, free: 1.551 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2188/1.739, allocations: 2.464 MB / 0.7031 GB, free: 158 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005169/1.744, allocations: 0.895 MB / 0.704 GB, free: 158 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09388/1.838, allocations: 46.42 MB / 0.7493 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006971/1.845, allocations: 6.207 MB / 0.7554 GB, free: 127.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006301/1.852, allocations: 1.947 MB / 0.7573 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008006/1.86, allocations: 3.393 MB / 0.7606 GB, free: 121.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/1.86, allocations: 0 / 0.7606 GB, free: 121.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4894/2.349, allocations: 114 MB / 0.8719 GB, free: 115 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/2.349, allocations: 264.3 kB / 0.8721 GB, free: 114.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.52/6.87, allocations: 3.125 kB / 0.8721 GB, free: 114.6 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