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.0009917/0.0009918, allocations: 89.27 kB / 16.3 MB, free: 6.133 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.001139/0.001139, allocations: 184.8 kB / 17.2 MB, free: 6.016 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.426/1.426, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003172, allocations: 9.938 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 50.42 MB / 351.3 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01333/0.1229, allocations: 12.26 MB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009868/0.1328, allocations: 4.851 MB / 368.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002689/0.1355, allocations: 87.62 kB / 368.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00275/0.1383, allocations: 0.9094 MB / 369.4 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004617/0.1429, allocations: 1.324 MB / 370.7 MB, free: 212 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2183/0.3612, allocations: 0.6633 MB / 371.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00669/0.3679, allocations: 2.498 MB / 373.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003874/0.3718, allocations: 2.317 MB / 376.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00289/0.3747, allocations: 1.162 MB / 377.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003086/0.3778, allocations: 1.444 MB / 378.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000547/0.3784, allocations: 186.3 kB / 378.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.3799, allocations: 361.9 kB / 379.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009809/0.3809, allocations: 0.7573 MB / 380.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001507/0.3824, allocations: 0.7018 MB / 380.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.3896, allocations: 5.028 MB / 385.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3896, allocations: 0 / 385.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.3897, allocations: 0 / 385.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.3898, allocations: 0 / 385.8 MB, free: 8.164 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.01181/0.4017, allocations: 3.599 MB / 389.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.473e-05/0.4017, allocations: 9.156 kB / 389.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002264/0.404, allocations: 459.8 kB / 389.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003685/0.4077, allocations: 0.6142 MB / 390.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006431/0.4142, allocations: 2.171 MB / 392.6 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003406/0.4146, allocations: 241.4 kB / 392.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/0.4157, allocations: 319.3 kB / 393.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.4274, allocations: 3.999 MB / 397.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.473e-05/0.4276, allocations: 3.062 kB / 397.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003602/0.4279, allocations: 127.4 kB / 397.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001479/0.4281, allocations: 146.5 kB / 397.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009355/0.4374, allocations: 3.367 MB / 400.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02425/0.4617, allocations: 13.27 MB / 414.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003985/0.4658, allocations: 3.95 MB / 418 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004787/0.4706, allocations: 2.646 MB / 420.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.4706, allocations: 47.56 kB / 420.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 2.705e-06/0.4706, allocations: 4 kB / 420.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01203/0.4827, allocations: 6.063 MB / 426.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.4828, allocations: 68.72 kB / 426.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/0.4861, allocations: 1.802 MB / 428.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.4863, allocations: 53.7 kB / 428.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.4876, allocations: 1.505 MB / 430.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.4881, allocations: 0.4957 MB / 430.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.984e-05/0.4882, allocations: 44 kB / 430.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002287/0.4885, allocations: 377.9 kB / 431.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.4898, allocations: 0.773 MB / 431.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.4915, allocations: 1.372 MB / 433.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.4931, allocations: 1.019 MB / 434.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.4931, allocations: 12 kB / 434.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004163/0.4973, allocations: 2.489 MB / 436.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.4973, allocations: 15.94 kB / 436.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.4974, allocations: 24.06 kB / 436.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003738/0.4977, allocations: 114.5 kB / 436.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.4995, allocations: 487.2 kB / 437.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.5006, allocations: 1.315 MB / 438.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.5023, allocations: 120.1 kB / 438.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.5024, allocations: 83.98 kB / 438.9 MB, free: 10.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * 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.002399/0.5048, allocations: 0.9812 MB / 439.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004102/0.5052, allocations: 201.5 kB / 440.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/0.5086, allocations: 2.005 MB / 442.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.5086, allocations: 19.95 kB / 442.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.5086, allocations: 0 / 442.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.5086, allocations: 7.969 kB / 442.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007919/0.5165, allocations: 5.031 MB / 447.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.5166, allocations: 7.953 kB / 447.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.5179, allocations: 311.8 kB / 447.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002844/0.5182, allocations: 101 kB / 447.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.142e-05/0.5183, allocations: 35.98 kB / 447.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008752/0.5192, allocations: 1.276 MB / 448.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5192, allocations: 0 / 448.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00448/0.5237, allocations: 3.269 MB / 452.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.525, allocations: 462.4 kB / 452.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002609/0.5253, allocations: 28.06 kB / 452.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009435/0.5262, allocations: 83.91 kB / 452.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.5264, allocations: 89.19 kB / 452.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/0.5265, allocations: 43.97 kB / 452.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.5285, allocations: 1.218 MB / 454.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.5285, allocations: 0 / 454.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.5305, allocations: 0.5259 MB / 454.6 MB, free: 10.83 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 (146): * Single equations (assignments): 143 * 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.005034/0.5355, allocations: 4.402 MB / 459 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003591/0.5391, allocations: 2.237 MB / 461.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5391, allocations: 0 / 461.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.5407, allocations: 1.202 MB / 462.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/0.5433, allocations: 484.9 kB / 462.9 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03977/0.5831, allocations: 29.31 MB / 492.2 MB, free: 3.734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00227/0.5854, allocations: 2.322 MB / 494.5 MB, free: 1.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001965/0.5874, allocations: 0.5168 MB / 495.1 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/0.5889, allocations: 1.159 MB / 496.2 MB, free: 15.7 MB / 414.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5889, allocations: 0 / 496.2 MB, free: 15.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08965/0.6786, allocations: 45.67 MB / 0.5292 GB, free: 2.547 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.6788, allocations: 256.8 kB / 0.5294 GB, free: 2.211 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/3.528, allocations: 3.938 kB / 0.5294 GB, free: 2.207 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