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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001261/0.001261, allocations: 97.36 kB / 16.3 MB, free: 5.992 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.001445/0.001445, allocations: 184.7 kB / 17.2 MB, free: 5.91 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.453/1.453, allocations: 223.2 MB / 241.1 MB, free: 5.48 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003002, allocations: 5.75 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 50.42 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03523/0.1572, allocations: 33.02 MB / 384.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02705/0.1843, allocations: 10.54 MB / 394.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009432/0.1937, allocations: 270.9 kB / 395.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01072/0.2045, allocations: 2.192 MB / 397.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01532/0.2198, allocations: 3.681 MB / 400.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008226/0.2281, allocations: 1.834 MB / 402.8 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02203/0.2501, allocations: 10.33 MB / 413.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3341/0.5843, allocations: 19.89 MB / 433 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01279/0.5972, allocations: 4.622 MB / 437.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01357/0.6108, allocations: 5.301 MB / 442.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005208/0.616, allocations: 0.7716 MB / 443.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007779/0.6238, allocations: 1.087 MB / 444.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005548/0.6294, allocations: 2.428 MB / 447.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006453/0.6359, allocations: 2.59 MB / 449.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03722/0.6731, allocations: 22.89 MB / 472.7 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6732, allocations: 0 / 472.7 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.6732, allocations: 2.797 kB / 472.7 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009629/0.6742, allocations: 0 / 472.7 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03713/0.7113, allocations: 12.83 MB / 485.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.7114, allocations: 12.03 kB / 485.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00984/0.7212, allocations: 1.758 MB / 487.3 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03516/0.7564, allocations: 6.123 MB / 493.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01985/0.7763, allocations: 7.934 MB / 0.4896 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001111/0.7774, allocations: 0.9444 MB / 0.4905 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005579/0.783, allocations: 1.22 MB / 0.4917 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05585/0.8389, allocations: 18.82 MB / 0.5101 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006301/0.8396, allocations: 27.36 kB / 0.5101 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007453/0.8471, allocations: 0.5089 MB / 0.5106 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008751/0.848, allocations: 0.6582 MB / 0.5113 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0481/0.8961, allocations: 16.93 MB / 0.5278 GB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4134/1.31, allocations: 60.55 MB / 0.5869 GB, free: 113.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0272/1.337, allocations: 33.1 MB / 0.6193 GB, free: 85.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01933/1.356, allocations: 8.935 MB / 0.628 GB, free: 84.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/1.356, allocations: 75.23 kB / 0.6281 GB, free: 84.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=371): time 4.94e-06/1.356, allocations: 0 / 0.6281 GB, free: 84.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=413): time 0.04061/1.397, allocations: 17.79 MB / 0.6454 GB, free: 81.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/1.397, allocations: 96.28 kB / 0.6455 GB, free: 81.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009405/1.406, allocations: 5.084 MB / 0.6505 GB, free: 81.47 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008961/1.407, allocations: 90.92 kB / 0.6506 GB, free: 81.44 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003598/1.411, allocations: 5.608 MB / 0.656 GB, free: 78.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002231/1.413, allocations: 1.435 MB / 0.6574 GB, free: 77.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006194/1.414, allocations: 138.7 kB / 0.6576 GB, free: 76.94 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004816/1.414, allocations: 0.5865 MB / 0.6582 GB, free: 76.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004997/1.419, allocations: 2.974 MB / 0.6611 GB, free: 75.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007343/1.427, allocations: 5.971 MB / 0.6669 GB, free: 70.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007275/1.434, allocations: 4.3 MB / 0.6711 GB, free: 68.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.524e-05/1.434, allocations: 30.75 kB / 0.6711 GB, free: 68.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.0185/1.453, allocations: 10.08 MB / 0.681 GB, free: 63.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.528e-05/1.453, allocations: 48 kB / 0.681 GB, free: 63.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001695/1.453, allocations: 108 kB / 0.6811 GB, free: 63.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/1.455, allocations: 0.9466 MB / 0.682 GB, free: 62.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006255/1.462, allocations: 1.642 MB / 0.6836 GB, free: 60.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.472, allocations: 9.69 MB / 0.6931 GB, free: 50.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008582/1.481, allocations: 415.3 kB / 0.6935 GB, free: 49.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002344/1.483, allocations: 365.4 kB / 0.6938 GB, free: 49.55 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * 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 (848): * Single equations (assignments): 843 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01556/1.499, allocations: 4.302 MB / 0.698 GB, free: 45.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003164/1.502, allocations: 0.5519 MB / 0.6986 GB, free: 44.67 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/1.515, allocations: 6.738 MB / 0.7052 GB, free: 37.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/1.515, allocations: 40 kB / 0.7052 GB, free: 37.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.515, allocations: 8 kB / 0.7052 GB, free: 37.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/1.515, allocations: 27.91 kB / 0.7052 GB, free: 37.81 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03278/1.548, allocations: 16.34 MB / 0.7212 GB, free: 21.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/1.548, allocations: 7.953 kB / 0.7212 GB, free: 21.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003369/1.552, allocations: 0.804 MB / 0.722 GB, free: 20.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/1.554, allocations: 0.7768 MB / 0.7227 GB, free: 19.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004258/1.554, allocations: 91.97 kB / 0.7228 GB, free: 19.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008521/1.563, allocations: 8.839 MB / 0.7315 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/1.563, allocations: 11.94 kB / 0.7315 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.577, allocations: 10.4 MB / 0.7416 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004042/1.581, allocations: 1.111 MB / 0.7427 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001729/1.583, allocations: 83.94 kB / 0.7428 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003491/1.587, allocations: 231.8 kB / 0.743 GB, free: 14.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006573/1.587, allocations: 278.9 kB / 0.7433 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000291/1.588, allocations: 120 kB / 0.7434 GB, free: 14.08 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007348/1.595, allocations: 3.371 MB / 0.7467 GB, free: 10.73 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.51e-07/1.595, allocations: 4 kB / 0.7467 GB, free: 10.72 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01123/1.606, allocations: 1.936 MB / 0.7486 GB, free: 8.789 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (394): * Single equations (assignments): 389 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2634/1.87, allocations: 11.9 MB / 0.7602 GB, free: 134.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01354/1.883, allocations: 7.851 MB / 0.7679 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.883, allocations: 1.062 kB / 0.7679 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005569/1.889, allocations: 3.67 MB / 0.7714 GB, free: 132.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006427/1.895, allocations: 1.264 MB / 0.7727 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.134/2.029, allocations: 130.9 MB / 0.9006 GB, free: 23.25 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01413/2.044, allocations: 7.624 MB / 0.908 GB, free: 17.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01613/2.06, allocations: 2.196 MB / 0.9101 GB, free: 16.06 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01335/2.073, allocations: 4.52 MB / 0.9146 GB, free: 11.86 MB / 478.1 MB Notification: Performance of SimCode: time 2.124e-06/2.073, allocations: 0 / 0.9146 GB, free: 11.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4619/2.535, allocations: 148.3 MB / 1.059 GB, free: 73.1 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/2.535, allocations: 266.8 kB / 1.06 GB, free: 72.74 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.398/7.933, allocations: 4 kB / 1.06 GB, free: 72.74 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource_res.mat does not exist to compare? outputFormat=mat