Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.001331/0.001331, allocations: 87.11 kB / 16.31 MB, free: 6.008 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.001353/0.001353, allocations: 186.5 kB / 17.21 MB, free: 5.902 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.362/1.362, allocations: 223.2 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002639, allocations: 8.266 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 50.42 MB / 351.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02348/0.1242, allocations: 24.87 MB / 376.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.1402, allocations: 7.728 MB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005434/0.1457, allocations: 191.4 kB / 384.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005483/0.1512, allocations: 1.356 MB / 385.5 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008024/0.1592, allocations: 2.301 MB / 387.8 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004521/0.1638, allocations: 1.204 MB / 389 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.1792, allocations: 10.85 MB / 399.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03279/0.2121, allocations: 17.37 MB / 417.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006922/0.219, allocations: 3.827 MB / 421.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007748/0.2268, allocations: 4.389 MB / 425.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002387/0.2293, allocations: 0.6015 MB / 426.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2156/0.4449, allocations: 0.9375 MB / 427 MB, free: 19.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005227/0.4502, allocations: 1.797 MB / 428.8 MB, free: 19.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004877/0.4551, allocations: 1.963 MB / 430.7 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02311/0.4782, allocations: 17.4 MB / 448.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.445e-06/0.4783, allocations: 0 / 448.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.528e-06/0.4783, allocations: 0 / 448.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007855/0.4791, allocations: 0 / 448.1 MB, free: 13.61 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03146/0.5105, allocations: 9.895 MB / 458 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.5106, allocations: 8.812 kB / 458.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007287/0.5179, allocations: 1.542 MB / 459.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0301/0.548, allocations: 5.624 MB / 465.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.5624, allocations: 6.057 MB / 471.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000679/0.5631, allocations: 0.7111 MB / 472 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00478/0.5679, allocations: 0.9284 MB / 472.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04806/0.616, allocations: 15.01 MB / 487.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004631/0.6165, allocations: 21.59 kB / 487.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00435/0.6208, allocations: 397.7 kB / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006878/0.6216, allocations: 0.5113 MB / 488.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03462/0.6562, allocations: 13.66 MB / 0.4907 GB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09454/0.7508, allocations: 47.78 MB / 0.5374 GB, free: 1.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02361/0.7744, allocations: 28.54 MB / 0.5653 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005323/0.7798, allocations: 3.059 MB / 0.5682 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004015/0.7803, allocations: 242.7 kB / 0.5685 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/0.7803, allocations: 77.56 kB / 0.5686 GB, free: 14.03 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.31e-06/0.7803, allocations: 3.375 kB / 0.5686 GB, free: 14.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.262/1.042, allocations: 15.59 MB / 0.5838 GB, free: 150.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/1.042, allocations: 97.39 kB / 0.5839 GB, free: 150 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006311/1.049, allocations: 3.569 MB / 0.5874 GB, free: 149.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000823/1.05, allocations: 90.14 kB / 0.5874 GB, free: 149.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.052, allocations: 4.042 MB / 0.5914 GB, free: 148.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001819/1.054, allocations: 1.338 MB / 0.5927 GB, free: 147.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000421/1.054, allocations: 121.2 kB / 0.5928 GB, free: 147.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003265/1.055, allocations: 0.5472 MB / 0.5933 GB, free: 147 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003979/1.059, allocations: 2.567 MB / 0.5959 GB, free: 146.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005084/1.064, allocations: 5.064 MB / 0.6008 GB, free: 142.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00535/1.069, allocations: 3.757 MB / 0.6045 GB, free: 140.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.412e-05/1.069, allocations: 22.66 kB / 0.6045 GB, free: 140.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01457/1.084, allocations: 8.574 MB / 0.6129 GB, free: 137.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.846e-05/1.084, allocations: 42.41 kB / 0.6129 GB, free: 137.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/1.084, allocations: 81.06 kB / 0.613 GB, free: 137.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002058/1.086, allocations: 0.8555 MB / 0.6138 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005214/1.091, allocations: 1.36 MB / 0.6151 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009032/1.1, allocations: 7.109 MB / 0.6221 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005363/1.106, allocations: 321.4 kB / 0.6224 GB, free: 131.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/1.107, allocations: 307.4 kB / 0.6227 GB, free: 131.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008525/1.116, allocations: 3.519 MB / 0.6261 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/1.117, allocations: 403.5 kB / 0.6265 GB, free: 127.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/1.127, allocations: 5.968 MB / 0.6323 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/1.128, allocations: 40 kB / 0.6324 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.128, allocations: 12 kB / 0.6324 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/1.128, allocations: 19.69 kB / 0.6324 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/1.153, allocations: 15.22 MB / 0.6473 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/1.153, allocations: 4 kB / 0.6473 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002548/1.156, allocations: 0.6982 MB / 0.648 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001823/1.158, allocations: 0.6897 MB / 0.6486 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003268/1.158, allocations: 89.19 kB / 0.6487 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006913/1.165, allocations: 6.151 MB / 0.6547 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.165, allocations: 8 kB / 0.6547 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/1.177, allocations: 8.69 MB / 0.6632 GB, free: 91.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002901/1.18, allocations: 0.8863 MB / 0.6641 GB, free: 90.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006683/1.18, allocations: 75.95 kB / 0.6641 GB, free: 90.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/1.182, allocations: 179.8 kB / 0.6643 GB, free: 90.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/1.183, allocations: 272 kB / 0.6646 GB, free: 89.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002081/1.183, allocations: 116 kB / 0.6647 GB, free: 89.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003849/1.187, allocations: 2.384 MB / 0.667 GB, free: 87.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.187, allocations: 0 / 0.667 GB, free: 87.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007396/1.194, allocations: 1.548 MB / 0.6685 GB, free: 85.81 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01215/1.206, allocations: 9.418 MB / 0.6777 GB, free: 76.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01036/1.217, allocations: 6.455 MB / 0.684 GB, free: 69.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/1.217, allocations: 1 kB / 0.684 GB, free: 69.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004687/1.221, allocations: 2.935 MB / 0.6869 GB, free: 66.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005907/1.227, allocations: 0.917 MB / 0.6878 GB, free: 65.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09302/1.32, allocations: 44.97 MB / 0.7317 GB, free: 18.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00685/1.327, allocations: 5.976 MB / 0.7375 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00524/1.333, allocations: 1.885 MB / 0.7394 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004782/1.337, allocations: 3.209 MB / 0.7425 GB, free: 7.258 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/1.337, allocations: 0 / 0.7425 GB, free: 7.258 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3765/1.714, allocations: 115.7 MB / 0.8555 GB, free: 61.92 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/1.714, allocations: 259.1 kB / 0.8558 GB, free: 61.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.956/6.67, allocations: 3.609 kB / 0.8558 GB, free: 61.57 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat