Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 198.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008412/0.0008415, allocations: 100.9 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.000312, allocations: 4 kB / 358 MB, free: 9.191 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.22, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2953/0.5153, allocations: 111.1 MB / 0.5084 GB, free: 97.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.5156, allocations: 90.64 kB / 0.5084 GB, free: 97.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1187/0.6343, allocations: 53.24 MB / 0.5604 GB, free: 51.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6343, allocations: 0 / 0.5604 GB, free: 51.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001477/0.6345, allocations: 75.86 kB / 0.5605 GB, free: 51.12 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004684/0.6392, allocations: 2.917 MB / 0.5634 GB, free: 48.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.6392, allocations: 12.03 kB / 0.5634 GB, free: 48.13 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003909/0.6396, allocations: 374.8 kB / 0.5637 GB, free: 47.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007744/0.6404, allocations: 352.1 kB / 0.5641 GB, free: 47.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003344/0.6438, allocations: 1.927 MB / 0.5659 GB, free: 45.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.266e-05/0.6439, allocations: 197 kB / 0.5661 GB, free: 45.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002738/0.6442, allocations: 247.9 kB / 0.5664 GB, free: 44.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004089/0.6483, allocations: 3.236 MB / 0.5695 GB, free: 41.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.673e-05/0.6483, allocations: 3.938 kB / 0.5695 GB, free: 41.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002061/0.6485, allocations: 116 kB / 0.5696 GB, free: 41.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.219e-05/0.6486, allocations: 120.9 kB / 0.5698 GB, free: 41.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003365/0.652, allocations: 2.58 MB / 0.5723 GB, free: 38.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01203/0.664, allocations: 10.49 MB / 0.5825 GB, free: 27.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.6656, allocations: 1.447 MB / 0.5839 GB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002705/0.6659, allocations: 211.2 kB / 0.5841 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.6659, allocations: 43.56 kB / 0.5842 GB, free: 26.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 2.916e-06/0.6659, allocations: 0 / 0.5842 GB, free: 26.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01266/0.6786, allocations: 7.086 MB / 0.5911 GB, free: 18.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.6787, allocations: 64.72 kB / 0.5912 GB, free: 18.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/0.6804, allocations: 1.566 MB / 0.5927 GB, free: 17.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.6805, allocations: 49.64 kB / 0.5927 GB, free: 17.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.6811, allocations: 1.26 MB / 0.594 GB, free: 15.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/0.6813, allocations: 461.4 kB / 0.5944 GB, free: 15.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-05/0.6814, allocations: 36 kB / 0.5944 GB, free: 15.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.6815, allocations: 365.9 kB / 0.5948 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/0.6824, allocations: 0.8081 MB / 0.5956 GB, free: 14.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.6835, allocations: 1.318 MB / 0.5969 GB, free: 12.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.6847, allocations: 1.021 MB / 0.5979 GB, free: 11.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.6847, allocations: 4 kB / 0.5979 GB, free: 11.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003292/0.688, allocations: 2.548 MB / 0.6004 GB, free: 9.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.688, allocations: 15.95 kB / 0.6004 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.688, allocations: 16 kB / 0.6004 GB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005424/0.6886, allocations: 243.6 kB / 0.6006 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.69, allocations: 439.3 kB / 0.601 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.6918, allocations: 3.045 MB / 0.604 GB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.6931, allocations: 127.8 kB / 0.6041 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.6933, allocations: 75.98 kB / 0.6042 GB, free: 4.938 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001242/0.6945, allocations: 0.8251 MB / 0.605 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.6948, allocations: 193.6 kB / 0.6052 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/0.6975, allocations: 2.152 MB / 0.6073 GB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.6975, allocations: 12 kB / 0.6073 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.6975, allocations: 4 kB / 0.6073 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.6975, allocations: 3.984 kB / 0.6073 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007123/0.7047, allocations: 4.891 MB / 0.6121 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.7047, allocations: 3.953 kB / 0.6121 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.7059, allocations: 291.6 kB / 0.6124 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000524/0.7065, allocations: 203.5 kB / 0.6126 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-05/0.7066, allocations: 27.98 kB / 0.6126 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.7088, allocations: 3.006 MB / 0.6155 GB, free: 8.922 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7089, allocations: 3.938 kB / 0.6155 GB, free: 8.918 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00444/0.7133, allocations: 3.44 MB / 0.6189 GB, free: 5.367 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/0.7143, allocations: 450.7 kB / 0.6193 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.7146, allocations: 28 kB / 0.6194 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009682/0.7155, allocations: 95.86 kB / 0.6194 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.7157, allocations: 80.84 kB / 0.6195 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.359e-05/0.7158, allocations: 43.98 kB / 0.6196 GB, free: 4.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001686/0.7175, allocations: 1.189 MB / 0.6207 GB, free: 3.484 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7175, allocations: 7.938 kB / 0.6207 GB, free: 3.477 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001557/0.7191, allocations: 0.5351 MB / 0.6213 GB, free: 2.941 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005574/0.7246, allocations: 4.902 MB / 0.626 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003546/0.7282, allocations: 2.422 MB / 0.6284 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.7282, allocations: 4 kB / 0.6284 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.73, allocations: 1.386 MB / 0.6298 GB, free: 9.992 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.732, allocations: 453.9 kB / 0.6302 GB, free: 9.559 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02675/0.7588, allocations: 26.28 MB / 0.6559 GB, free: 14.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001664/0.7605, allocations: 2.069 MB / 0.6579 GB, free: 12.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0016/0.7621, allocations: 0.516 MB / 0.6584 GB, free: 11.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/0.7633, allocations: 0.9874 MB / 0.6594 GB, free: 10.52 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/0.7634, allocations: 4 kB / 0.6594 GB, free: 10.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2298/0.9932, allocations: 47.62 MB / 0.7059 GB, free: 111 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.9933, allocations: 249 kB / 0.7061 GB, free: 110.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.144/4.137, allocations: 0 / 0.7061 GB, free: 110.8 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat