Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 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 / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009/0.0009, allocations: 86.44 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002617, allocations: 11.98 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2147, allocations: 50.4 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.3267, allocations: 105.2 MB / 0.4949 GB, free: 7.238 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.3269, allocations: 87.95 kB / 0.495 GB, free: 7.152 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2677/0.5947, allocations: 39.48 MB / 0.5336 GB, free: 80.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5947, allocations: 0 / 0.5336 GB, free: 80.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001495/0.5949, allocations: 43.94 kB / 0.5336 GB, free: 80.9 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004307/0.5992, allocations: 1.973 MB / 0.5355 GB, free: 78.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.5992, allocations: 8.031 kB / 0.5355 GB, free: 78.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006007/0.5998, allocations: 232.1 kB / 0.5358 GB, free: 78.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008521/0.6007, allocations: 233.5 kB / 0.536 GB, free: 78.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002667/0.6034, allocations: 1.277 MB / 0.5372 GB, free: 77.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.6035, allocations: 127 kB / 0.5373 GB, free: 76.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.6037, allocations: 155.9 kB / 0.5375 GB, free: 76.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.6062, allocations: 1.981 MB / 0.5394 GB, free: 74.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.114e-05/0.6062, allocations: 11.94 kB / 0.5394 GB, free: 74.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.6064, allocations: 64 kB / 0.5395 GB, free: 74.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.453e-05/0.6064, allocations: 66.92 kB / 0.5396 GB, free: 74.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.6085, allocations: 1.573 MB / 0.5411 GB, free: 73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007226/0.6157, allocations: 6.859 MB / 0.5478 GB, free: 65.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.6163, allocations: 497 kB / 0.5483 GB, free: 65.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002122/0.6185, allocations: 1.47 MB / 0.5497 GB, free: 63.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.6185, allocations: 38.56 kB / 0.5497 GB, free: 63.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 1.843e-06/0.6185, allocations: 0 / 0.5497 GB, free: 63.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005223/0.6237, allocations: 3.123 MB / 0.5528 GB, free: 60.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001718/0.6254, allocations: 2.213 MB / 0.555 GB, free: 58.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/0.6273, allocations: 1.389 MB / 0.5563 GB, free: 56.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.6274, allocations: 33.7 kB / 0.5563 GB, free: 56.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004826/0.6279, allocations: 1.033 MB / 0.5573 GB, free: 55.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.628, allocations: 209.2 kB / 0.5575 GB, free: 55.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.6281, allocations: 28 kB / 0.5576 GB, free: 55.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.001e-05/0.6282, allocations: 369.9 kB / 0.5579 GB, free: 55.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006103/0.6288, allocations: 0.4919 MB / 0.5584 GB, free: 54.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008936/0.6297, allocations: 1.407 MB / 0.5598 GB, free: 52.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000914/0.6306, allocations: 0.7696 MB / 0.5605 GB, free: 52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.637e-05/0.6306, allocations: 12 kB / 0.5605 GB, free: 51.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002657/0.6333, allocations: 2.075 MB / 0.5626 GB, free: 49.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.6333, allocations: 20 kB / 0.5626 GB, free: 49.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.6334, allocations: 32 kB / 0.5626 GB, free: 49.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000478/0.6339, allocations: 238.9 kB / 0.5628 GB, free: 49.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6349, allocations: 375.3 kB / 0.5632 GB, free: 49.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.6361, allocations: 1.769 MB / 0.5649 GB, free: 47.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.6373, allocations: 135.4 kB / 0.5651 GB, free: 47.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.6374, allocations: 95.98 kB / 0.5652 GB, free: 47.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * 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 (195): * Single equations (assignments): 192 * 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 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008088/0.6382, allocations: 0.575 MB / 0.5657 GB, free: 46.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.6384, allocations: 150.2 kB / 0.5659 GB, free: 46.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.64, allocations: 1.051 MB / 0.5669 GB, free: 45.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.64, allocations: 4 kB / 0.5669 GB, free: 45.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.64, allocations: 4 kB / 0.5669 GB, free: 45.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.64, allocations: 0 / 0.5669 GB, free: 45.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004291/0.6443, allocations: 3.108 MB / 0.5699 GB, free: 42.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.6443, allocations: 4 kB / 0.5699 GB, free: 42.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.6447, allocations: 99.8 kB / 0.57 GB, free: 41.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005377/0.6452, allocations: 226.6 kB / 0.5702 GB, free: 41.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.313e-05/0.6453, allocations: 16 kB / 0.5703 GB, free: 41.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002777/0.648, allocations: 3.8 MB / 0.574 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001427/0.6495, allocations: 2.045 MB / 0.576 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.6513, allocations: 1.815 MB / 0.5777 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.6518, allocations: 299.1 kB / 0.578 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002027/0.652, allocations: 15.95 kB / 0.578 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/0.6527, allocations: 48.02 kB / 0.5781 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.6528, allocations: 55.86 kB / 0.5781 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.6528, allocations: 16 kB / 0.5782 GB, free: 33.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001259/0.6541, allocations: 1.031 MB / 0.5792 GB, free: 32.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6541, allocations: 4 kB / 0.5792 GB, free: 32.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001505/0.6556, allocations: 404 kB / 0.5796 GB, free: 31.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * 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 (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002581/0.6582, allocations: 3.485 MB / 0.583 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.6602, allocations: 1.543 MB / 0.5845 GB, free: 26.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.6602, allocations: 256 / 0.5845 GB, free: 26.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000966/0.6611, allocations: 0.816 MB / 0.5853 GB, free: 25.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.6626, allocations: 370.9 kB / 0.5856 GB, free: 25.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/0.6822, allocations: 32.79 MB / 0.6176 GB, free: 7.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/0.6838, allocations: 1.499 MB / 0.6191 GB, free: 5.828 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001204/0.685, allocations: 345.7 kB / 0.6194 GB, free: 5.484 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008705/0.6859, allocations: 0.6203 MB / 0.62 GB, free: 4.863 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6859, allocations: 0 / 0.62 GB, free: 4.863 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06672/0.7526, allocations: 37.02 MB / 0.6562 GB, free: 284 kB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.7528, allocations: 234.4 kB / 0.6564 GB, free: 40 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/3.766, allocations: 3.938 kB / 0.6564 GB, free: 36 kB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat