Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008492/0.0008491, allocations: 93.09 kB / 292.1 MB, free: 6.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.756e-05, allocations: 4 kB / 350.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3795/0.484, allocations: 109.8 MB / 0.4999 GB, free: 12.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.4844, allocations: 82.53 kB / 0.5 GB, free: 12.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1353/0.6198, allocations: 50.24 MB / 0.5491 GB, free: 10.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.6198, allocations: 0 / 0.5491 GB, free: 10.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002589/0.6201, allocations: 59.94 kB / 0.5491 GB, free: 10.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006388/0.6265, allocations: 2.369 MB / 0.5515 GB, free: 8.387 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.6265, allocations: 12.02 kB / 0.5515 GB, free: 8.375 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001048/0.6276, allocations: 320.8 kB / 0.5518 GB, free: 8.051 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.6292, allocations: 328.5 kB / 0.5521 GB, free: 7.727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004395/0.6336, allocations: 1.691 MB / 0.5537 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.6338, allocations: 168.4 kB / 0.5539 GB, free: 5.809 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006301/0.6344, allocations: 224.6 kB / 0.5541 GB, free: 5.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004954/0.6394, allocations: 2.821 MB / 0.5569 GB, free: 2.621 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.073e-05/0.6395, allocations: 4 kB / 0.5569 GB, free: 2.617 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.6397, allocations: 96 kB / 0.557 GB, free: 2.523 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.6398, allocations: 104.3 kB / 0.5571 GB, free: 2.418 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.6435, allocations: 2.208 MB / 0.5592 GB, free: 200 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01525/0.6588, allocations: 9.14 MB / 0.5681 GB, free: 6.777 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002313/0.6611, allocations: 1.705 MB / 0.5698 GB, free: 4.945 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.6624, allocations: 0.806 MB / 0.5706 GB, free: 4.141 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003729/0.6628, allocations: 227.1 kB / 0.5708 GB, free: 3.883 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.6628, allocations: 43.56 kB / 0.5709 GB, free: 3.832 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.955e-06/0.6628, allocations: 0 / 0.5709 GB, free: 3.832 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.264/0.9268, allocations: 6.397 MB / 0.5771 GB, free: 90.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.9269, allocations: 66.67 kB / 0.5772 GB, free: 90.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00311/0.93, allocations: 1.329 MB / 0.5785 GB, free: 90.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002521/0.9303, allocations: 46.7 kB / 0.5785 GB, free: 90.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008161/0.9311, allocations: 1.102 MB / 0.5796 GB, free: 90.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005259/0.9317, allocations: 466.7 kB / 0.58 GB, free: 89.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.9318, allocations: 30.88 kB / 0.5801 GB, free: 89.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.932, allocations: 370.6 kB / 0.5804 GB, free: 89.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.9331, allocations: 0.7211 MB / 0.5811 GB, free: 89.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.9346, allocations: 1.139 MB / 0.5822 GB, free: 89.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.936, allocations: 0.9112 MB / 0.5831 GB, free: 89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.936, allocations: 3.094 kB / 0.5831 GB, free: 89 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004899/0.9409, allocations: 2.613 MB / 0.5857 GB, free: 88.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.941, allocations: 10.03 kB / 0.5857 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-05/0.941, allocations: 15.38 kB / 0.5857 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.9425, allocations: 0.5857 MB / 0.5863 GB, free: 88.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.9438, allocations: 362.2 kB / 0.5866 GB, free: 88.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0072/0.9511, allocations: 6.692 MB / 0.5932 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.9529, allocations: 120 kB / 0.5933 GB, free: 86.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.9531, allocations: 66.73 kB / 0.5933 GB, free: 86.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003204/0.9535, allocations: 192.3 kB / 0.5935 GB, free: 86.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.9538, allocations: 175 kB / 0.5937 GB, free: 85.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004043/0.9578, allocations: 2.352 MB / 0.596 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.9579, allocations: 14.61 kB / 0.596 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.9579, allocations: 7.5 kB / 0.596 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.9579, allocations: 9 kB / 0.596 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008634/0.9665, allocations: 4.938 MB / 0.6008 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.9666, allocations: 4 kB / 0.6008 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009298/0.9675, allocations: 222.9 kB / 0.601 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/0.9692, allocations: 0.6476 MB / 0.6017 GB, free: 85.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.9693, allocations: 44.02 kB / 0.6017 GB, free: 85.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.9802, allocations: 8.378 MB / 0.6099 GB, free: 81.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.9802, allocations: 5.031 kB / 0.6099 GB, free: 81.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006955/0.9872, allocations: 3.581 MB / 0.6134 GB, free: 79.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.9886, allocations: 415.3 kB / 0.6138 GB, free: 79.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003008/0.9889, allocations: 34.72 kB / 0.6138 GB, free: 79.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009915/0.9899, allocations: 98.56 kB / 0.6139 GB, free: 79.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/0.9903, allocations: 112.5 kB / 0.614 GB, free: 79.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.9904, allocations: 39.89 kB / 0.6141 GB, free: 79.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00197/0.9924, allocations: 1.021 MB / 0.6151 GB, free: 78.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9924, allocations: 0 / 0.6151 GB, free: 78.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002889/0.9953, allocations: 0.5565 MB / 0.6156 GB, free: 78.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007174/1.002, allocations: 5.161 MB / 0.6207 GB, free: 75.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004505/1.007, allocations: 2.336 MB / 0.6229 GB, free: 74.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/1.007, allocations: 1.031 kB / 0.6229 GB, free: 74.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002738/1.01, allocations: 1.496 MB / 0.6244 GB, free: 73.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/1.012, allocations: 449.4 kB / 0.6248 GB, free: 73.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009657/1.022, allocations: 4.479 MB / 0.6292 GB, free: 71.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/1.024, allocations: 1.938 MB / 0.6311 GB, free: 70.99 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001559/1.025, allocations: 383.9 kB / 0.6315 GB, free: 70.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.027, allocations: 0.8894 MB / 0.6323 GB, free: 70.24 MB / 442.7 MB Notification: Performance of SimCode: time 2.745e-06/1.027, allocations: 0 / 0.6323 GB, free: 70.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08034/1.107, allocations: 48.32 MB / 0.6795 GB, free: 55.41 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.107, allocations: 201.2 kB / 0.6797 GB, free: 55.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.447/4.555, allocations: 0 / 0.6797 GB, free: 55.18 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat