Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001082/0.001082, allocations: 196.9 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.458/1.458, 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.0009571/0.0009572, allocations: 91.89 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.369e-05, allocations: 0 / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4278/0.5487, allocations: 132.5 MB / 0.5221 GB, free: 5.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.549, allocations: 96.53 kB / 0.5222 GB, free: 5.766 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6733/1.222, allocations: 127.7 MB / 0.6469 GB, free: 77.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.583e-06/1.222, allocations: 7.875 kB / 0.6469 GB, free: 77.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004941/1.223, allocations: 141.6 kB / 0.6471 GB, free: 77.38 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01952/1.242, allocations: 5.151 MB / 0.6521 GB, free: 74.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/1.242, allocations: 11.66 kB / 0.6521 GB, free: 74.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003331/1.246, allocations: 0.7308 MB / 0.6528 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006559/1.252, allocations: 1.019 MB / 0.6538 GB, free: 74.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/1.264, allocations: 4.625 MB / 0.6583 GB, free: 71.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003793/1.265, allocations: 405.8 kB / 0.6587 GB, free: 71.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/1.267, allocations: 0.5283 MB / 0.6592 GB, free: 71.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01691/1.284, allocations: 6.813 MB / 0.6659 GB, free: 68.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002103/1.284, allocations: 19.05 kB / 0.6659 GB, free: 68.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008591/1.285, allocations: 227.3 kB / 0.6661 GB, free: 68.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002306/1.285, allocations: 246.8 kB / 0.6664 GB, free: 67.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/1.299, allocations: 5.421 MB / 0.6717 GB, free: 65.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04544/1.344, allocations: 22.69 MB / 0.6938 GB, free: 45.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007152/1.352, allocations: 8.538 MB / 0.7022 GB, free: 35.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003265/1.355, allocations: 2.121 MB / 0.7042 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/1.367, allocations: 6.578 MB / 0.7106 GB, free: 26.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/1.367, allocations: 60.5 kB / 0.7107 GB, free: 26.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 6.251e-06/1.367, allocations: 4 kB / 0.7107 GB, free: 26.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.02106/1.388, allocations: 10.08 MB / 0.7206 GB, free: 16.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/1.388, allocations: 85.41 kB / 0.7206 GB, free: 16.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004381/1.392, allocations: 2.734 MB / 0.7233 GB, free: 13.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003685/1.393, allocations: 69.7 kB / 0.7234 GB, free: 13.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/1.394, allocations: 2.501 MB / 0.7258 GB, free: 11.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006922/1.395, allocations: 0.871 MB / 0.7267 GB, free: 10.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/1.395, allocations: 64 kB / 0.7267 GB, free: 10.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/1.395, allocations: 428.8 kB / 0.7271 GB, free: 9.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/1.397, allocations: 1.326 MB / 0.7284 GB, free: 8.652 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/1.399, allocations: 2.297 MB / 0.7307 GB, free: 5.926 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/1.401, allocations: 1.741 MB / 0.7324 GB, free: 4.164 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/1.401, allocations: 8 kB / 0.7324 GB, free: 4.156 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.3436/1.745, allocations: 4.766 MB / 0.737 GB, free: 69.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.52e-05/1.745, allocations: 18.25 kB / 0.7371 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-05/1.745, allocations: 31.16 kB / 0.7371 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/1.747, allocations: 0.7189 MB / 0.7378 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/1.75, allocations: 0.7542 MB / 0.7385 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009816/1.76, allocations: 9.771 MB / 0.7481 GB, free: 63.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004073/1.764, allocations: 201.3 kB / 0.7483 GB, free: 63.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006889/1.765, allocations: 139.9 kB / 0.7484 GB, free: 63.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006821/1.766, allocations: 307.3 kB / 0.7487 GB, free: 63.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.767, allocations: 351.4 kB / 0.749 GB, free: 63.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007829/1.775, allocations: 4.22 MB / 0.7531 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/1.775, allocations: 22.84 kB / 0.7532 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/1.775, allocations: 13.41 kB / 0.7532 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/1.775, allocations: 11.02 kB / 0.7532 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/1.794, allocations: 9.215 MB / 0.7622 GB, free: 62.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/1.794, allocations: 6.125 kB / 0.7622 GB, free: 62.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/1.795, allocations: 413 kB / 0.7626 GB, free: 62.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/1.798, allocations: 0.9572 MB / 0.7635 GB, free: 62.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/1.798, allocations: 70.86 kB / 0.7636 GB, free: 62.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01518/1.813, allocations: 15.95 MB / 0.7792 GB, free: 53.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.813, allocations: 4.438 kB / 0.7792 GB, free: 53.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/1.825, allocations: 6.379 MB / 0.7854 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002706/1.828, allocations: 0.7214 MB / 0.7861 GB, free: 51.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001075/1.829, allocations: 69.64 kB / 0.7862 GB, free: 51.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/1.831, allocations: 155.3 kB / 0.7863 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006207/1.832, allocations: 191.4 kB / 0.7865 GB, free: 51.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002169/1.832, allocations: 77.3 kB / 0.7866 GB, free: 51.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004545/1.837, allocations: 2.069 MB / 0.7886 GB, free: 50.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.837, allocations: 0 / 0.7886 GB, free: 50.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007031/1.844, allocations: 1.103 MB / 0.7897 GB, free: 50.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01307/1.857, allocations: 8.381 MB / 0.7978 GB, free: 45.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008923/1.866, allocations: 4.145 MB / 0.8019 GB, free: 43.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.866, allocations: 0 / 0.8019 GB, free: 43.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004535/1.87, allocations: 2.785 MB / 0.8046 GB, free: 42.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005175/1.876, allocations: 0.8822 MB / 0.8055 GB, free: 41.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/1.899, allocations: 9.643 MB / 0.8149 GB, free: 37.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/1.903, allocations: 3.529 MB / 0.8183 GB, free: 36.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003493/1.906, allocations: 0.8116 MB / 0.8191 GB, free: 36.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002936/1.909, allocations: 2.084 MB / 0.8212 GB, free: 34.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/1.909, allocations: 4 kB / 0.8212 GB, free: 34.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4598/2.369, allocations: 94 MB / 0.913 GB, free: 78.11 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/2.369, allocations: 233.2 kB / 0.9132 GB, free: 77.89 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.371/7.74, allocations: 2.109 kB / 0.9132 GB, free: 77.89 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat