Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.00102/0.00102, allocations: 86.16 kB / 16.31 MB, free: 6.453 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.001213/0.001213, allocations: 179.5 kB / 17.21 MB, free: 6.328 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.381/1.381, allocations: 223.2 MB / 241.2 MB, free: 312 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002657, allocations: 8 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1122, allocations: 50.42 MB / 351.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01516/0.1274, allocations: 13.32 MB / 364.7 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009666/0.1371, allocations: 4.744 MB / 369.4 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002428/0.1396, allocations: 87.69 kB / 369.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.1424, allocations: 0.8116 MB / 370.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2101/0.3525, allocations: 1.028 MB / 371.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002927/0.3554, allocations: 0.6146 MB / 372 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006789/0.3622, allocations: 3.495 MB / 375.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004011/0.3663, allocations: 2.323 MB / 377.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003113/0.3694, allocations: 1.199 MB / 379 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003711/0.3732, allocations: 1.574 MB / 380.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000738/0.3739, allocations: 190.9 kB / 380.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.3758, allocations: 397 kB / 381.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009977/0.3768, allocations: 0.7863 MB / 381.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.3781, allocations: 0.6962 MB / 382.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005822/0.384, allocations: 5.086 MB / 387.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.384, allocations: 0 / 387.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.384, allocations: 0 / 387.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001647/0.3842, allocations: 0 / 387.7 MB, free: 7.48 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009478/0.3937, allocations: 3.617 MB / 391.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3937, allocations: 15.41 kB / 391.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/0.3949, allocations: 450.6 kB / 391.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.3978, allocations: 0.6172 MB / 392.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004043/0.4019, allocations: 2.126 MB / 394.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.4021, allocations: 259.8 kB / 394.8 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000467/0.4026, allocations: 311.8 kB / 395.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006573/0.4092, allocations: 4.018 MB / 399.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.784e-05/0.4093, allocations: 11.22 kB / 399.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.4096, allocations: 129.5 kB / 399.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.4097, allocations: 148.2 kB / 399.4 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00528/0.415, allocations: 3.366 MB / 402.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02149/0.4365, allocations: 13.34 MB / 416.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00417/0.4407, allocations: 3.958 MB / 420 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.4424, allocations: 1.016 MB / 421 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004691/0.4471, allocations: 2.654 MB / 423.7 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.4471, allocations: 47.56 kB / 423.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.324e-06/0.4472, allocations: 2.188 kB / 423.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01196/0.4591, allocations: 5.985 MB / 429.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.4592, allocations: 64.72 kB / 429.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003041/0.4623, allocations: 1.877 MB / 431.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.4624, allocations: 49.7 kB / 431.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.4635, allocations: 1.508 MB / 433.2 MB, free: 52 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.464, allocations: 490.4 kB / 433.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4641, allocations: 40 kB / 433.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.4643, allocations: 385.8 kB / 434.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.4657, allocations: 0.7652 MB / 434.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.4675, allocations: 1.366 MB / 436.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.469, allocations: 1.002 MB / 437.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4691, allocations: 8 kB / 437.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004983/0.474, allocations: 2.462 MB / 439.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.4741, allocations: 22.8 kB / 439.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.4741, allocations: 20 kB / 439.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.4745, allocations: 114.5 kB / 439.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/0.4763, allocations: 491.2 kB / 440.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.4774, allocations: 1.311 MB / 441.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.4792, allocations: 107.8 kB / 441.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.4793, allocations: 83.98 kB / 441.9 MB, free: 6.992 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002054/0.4814, allocations: 0.9836 MB / 442.8 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004048/0.4818, allocations: 205.6 kB / 443 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/0.4855, allocations: 1.961 MB / 445 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.4856, allocations: 16 kB / 445 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4856, allocations: 0 / 445 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.4856, allocations: 7.969 kB / 445 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009091/0.4947, allocations: 4.993 MB / 450 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4947, allocations: 4 kB / 450 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.496, allocations: 307.8 kB / 450.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003686/0.4964, allocations: 94.52 kB / 450.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-05/0.4965, allocations: 28 kB / 450.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4975, allocations: 1.282 MB / 451.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4975, allocations: 0 / 451.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.5025, allocations: 3.077 MB / 454.8 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.5038, allocations: 462.4 kB / 455.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000301/0.5041, allocations: 28 kB / 455.3 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009529/0.5051, allocations: 79.91 kB / 455.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.5053, allocations: 93.2 kB / 455.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.329e-05/0.5054, allocations: 39.98 kB / 455.5 MB, free: 9.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002222/0.5076, allocations: 1.277 MB / 456.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5076, allocations: 0 / 456.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002204/0.5098, allocations: 0.5312 MB / 457.3 MB, free: 7.219 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005124/0.5149, allocations: 3.695 MB / 461 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003893/0.5189, allocations: 2.201 MB / 463.2 MB, free: 1.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.5189, allocations: 3.938 kB / 463.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.5207, allocations: 1.176 MB / 464.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.5237, allocations: 0.4971 MB / 464.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03892/0.5626, allocations: 16.79 MB / 481.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002685/0.5653, allocations: 2.259 MB / 483.9 MB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001963/0.5673, allocations: 0.5131 MB / 484.4 MB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/0.569, allocations: 1.179 MB / 485.6 MB, free: 9.527 MB / 398.1 MB Notification: Performance of SimCode: time 2.555e-06/0.569, allocations: 4 kB / 485.6 MB, free: 9.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08184/0.6509, allocations: 46.31 MB / 0.5195 GB, free: 11.74 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/0.6511, allocations: 259.1 kB / 0.5197 GB, free: 11.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.886/3.537, allocations: 0 / 0.5197 GB, free: 11.39 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat