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.001093/0.001093, allocations: 198.4 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.296/1.296, allocations: 227.2 MB / 245 MB, free: 5.922 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 100.7 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003125, allocations: 8 kB / 358 MB, free: 9.211 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2172, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.5618, allocations: 109.9 MB / 0.5072 GB, free: 44.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.5621, allocations: 90.09 kB / 0.5073 GB, free: 44.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1161/0.6782, allocations: 50.2 MB / 0.5563 GB, free: 34.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6783, allocations: 0 / 0.5563 GB, free: 34.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001896/0.6785, allocations: 61.66 kB / 0.5564 GB, free: 34.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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006175/0.6847, allocations: 2.651 MB / 0.559 GB, free: 33.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.6847, allocations: 7.75 kB / 0.559 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007916/0.6855, allocations: 336.6 kB / 0.5593 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.6866, allocations: 326 kB / 0.5596 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/0.6903, allocations: 1.699 MB / 0.5613 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.6904, allocations: 170.2 kB / 0.5614 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004181/0.6908, allocations: 222.6 kB / 0.5616 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004433/0.6953, allocations: 2.893 MB / 0.5645 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.14e-05/0.6954, allocations: 14.34 kB / 0.5645 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.6956, allocations: 91.53 kB / 0.5646 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.629e-05/0.6957, allocations: 105.2 kB / 0.5647 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003674/0.6994, allocations: 2.321 MB / 0.5669 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.7119, allocations: 9.14 MB / 0.5759 GB, free: 24.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.7141, allocations: 1.77 MB / 0.5776 GB, free: 23.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003051/0.7144, allocations: 215.1 kB / 0.5778 GB, free: 22.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.7145, allocations: 43.56 kB / 0.5778 GB, free: 22.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 4.298e-06/0.7145, allocations: 3.938 kB / 0.5778 GB, free: 22.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.01426/0.7287, allocations: 7.63 MB / 0.5853 GB, free: 14.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.7288, allocations: 76.61 kB / 0.5854 GB, free: 14.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.7306, allocations: 1.35 MB / 0.5867 GB, free: 13.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.723e-05/0.7307, allocations: 53.7 kB / 0.5867 GB, free: 13.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005027/0.7312, allocations: 1.1 MB / 0.5878 GB, free: 12.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.7314, allocations: 457.4 kB / 0.5882 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.833e-05/0.7315, allocations: 36 kB / 0.5883 GB, free: 11.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.7316, allocations: 365.9 kB / 0.5886 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.7326, allocations: 0.7769 MB / 0.5894 GB, free: 10.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.7338, allocations: 1.191 MB / 0.5905 GB, free: 9.359 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.735, allocations: 0.9589 MB / 0.5915 GB, free: 8.398 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.735, allocations: 4 kB / 0.5915 GB, free: 8.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003841/0.7389, allocations: 2.727 MB / 0.5941 GB, free: 5.648 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.7389, allocations: 8 kB / 0.5942 GB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.7389, allocations: 12 kB / 0.5942 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.7402, allocations: 0.5886 MB / 0.5947 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.7415, allocations: 363.4 kB / 0.5951 GB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00729/0.7488, allocations: 6.922 MB / 0.6018 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.7503, allocations: 111.9 kB / 0.602 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/0.7505, allocations: 64 kB / 0.602 GB, free: 13.31 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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.001668/0.7522, allocations: 0.7237 MB / 0.6027 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.7526, allocations: 177.8 kB / 0.6029 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/0.757, allocations: 2.446 MB / 0.6053 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.757, allocations: 20 kB / 0.6053 GB, free: 9.918 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.757, allocations: 4 kB / 0.6053 GB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.757, allocations: 7.969 kB / 0.6053 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009345/0.7664, allocations: 4.998 MB / 0.6102 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.7664, allocations: 0 / 0.6102 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.7674, allocations: 227.9 kB / 0.6104 GB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.7692, allocations: 0.6469 MB / 0.611 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.7693, allocations: 31.98 kB / 0.6111 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009873/0.7792, allocations: 8.664 MB / 0.6195 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.7793, allocations: 4 kB / 0.6195 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006108/0.7854, allocations: 3.661 MB / 0.6231 GB, free: 7.043 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.7865, allocations: 418.8 kB / 0.6235 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000383/0.7869, allocations: 31.98 kB / 0.6235 GB, free: 6.582 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.7881, allocations: 96.27 kB / 0.6236 GB, free: 6.488 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.7883, allocations: 97.17 kB / 0.6237 GB, free: 6.391 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.7884, allocations: 43.98 kB / 0.6238 GB, free: 6.348 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001745/0.7902, allocations: 1.043 MB / 0.6248 GB, free: 5.309 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7902, allocations: 0 / 0.6248 GB, free: 5.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001959/0.7922, allocations: 0.5546 MB / 0.6253 GB, free: 4.754 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * 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,75.0%) 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.006702/0.7989, allocations: 5.066 MB / 0.6303 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00418/0.8031, allocations: 2.453 MB / 0.6327 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.8031, allocations: 0 / 0.6327 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.8058, allocations: 1.57 MB / 0.6342 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/0.808, allocations: 445.5 kB / 0.6346 GB, free: 11.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02863/0.8366, allocations: 23.02 MB / 0.6571 GB, free: 3.109 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/0.8386, allocations: 1.939 MB / 0.659 GB, free: 1.137 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00129/0.8399, allocations: 391.1 kB / 0.6594 GB, free: 0.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.8411, allocations: 0.882 MB / 0.6602 GB, free: 15.87 MB / 458.7 MB Notification: Performance of SimCode: time 5.72e-06/0.8411, allocations: 0 / 0.6602 GB, free: 15.87 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2368/1.078, allocations: 48.05 MB / 0.7072 GB, free: 123.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/1.078, allocations: 224.6 kB / 0.7074 GB, free: 123.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.169/4.247, allocations: 0 / 0.7074 GB, free: 123.3 MB / 458.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