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.002017/0.002016, allocations: 198.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009159/0.0009159, allocations: 95.91 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.093e-05/2.095e-05, allocations: 7.984 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 51.48 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.381/0.4916, allocations: 109.1 MB / 0.4926 GB, free: 144 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.4919, allocations: 85.39 kB / 0.4927 GB, free: 100 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.131/0.6229, allocations: 49.58 MB / 0.5411 GB, free: 3.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.623, allocations: 0 / 0.5411 GB, free: 3.367 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000162/0.6231, allocations: 59.94 kB / 0.5412 GB, free: 3.309 MB / 410.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.004935/0.6281, allocations: 2.369 MB / 0.5435 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.6282, allocations: 16.03 kB / 0.5435 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.6293, allocations: 324.5 kB / 0.5438 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003447/0.6327, allocations: 1.691 MB / 0.5454 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.6328, allocations: 72 kB / 0.5455 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003115/0.6331, allocations: 135.9 kB / 0.5456 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003728/0.6369, allocations: 2.079 MB / 0.5477 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004062/0.6409, allocations: 2.496 MB / 0.5501 GB, free: 9.871 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.338e-05/0.641, allocations: 4 kB / 0.5501 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/0.6412, allocations: 0 / 0.5501 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.6414, allocations: 108.3 kB / 0.5502 GB, free: 9.758 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01494/0.6563, allocations: 8.71 MB / 0.5587 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.6585, allocations: 1.667 MB / 0.5604 GB, free: 15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.6597, allocations: 0.7757 MB / 0.5611 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000352/0.66, allocations: 223.4 kB / 0.5613 GB, free: 13.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.6601, allocations: 47.86 kB / 0.5614 GB, free: 13.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.156e-06/0.6601, allocations: 0 / 0.5614 GB, free: 13.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.009418/0.6695, allocations: 4.944 MB / 0.5662 GB, free: 8.945 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.6696, allocations: 68.72 kB / 0.5663 GB, free: 8.867 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001672/0.6713, allocations: 1.113 MB / 0.5673 GB, free: 7.746 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.256e-05/0.6714, allocations: 25.7 kB / 0.5674 GB, free: 7.715 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000692/0.6721, allocations: 1.103 MB / 0.5685 GB, free: 6.598 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/0.6724, allocations: 445.3 kB / 0.5689 GB, free: 6.156 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.426e-05/0.6725, allocations: 0 / 0.5689 GB, free: 6.156 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.6726, allocations: 377.8 kB / 0.5692 GB, free: 5.781 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009189/0.6736, allocations: 0.6951 MB / 0.5699 GB, free: 5.086 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.6748, allocations: 1.094 MB / 0.571 GB, free: 3.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.676, allocations: 0.8923 MB / 0.5719 GB, free: 2.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.676, allocations: 7.953 kB / 0.5719 GB, free: 2.922 MB / 442.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.003963/0.68, allocations: 2.446 MB / 0.5743 GB, free: 468 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.68, allocations: 15.98 kB / 0.5743 GB, free: 452 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.68, allocations: 16 kB / 0.5743 GB, free: 436 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2669/0.947, allocations: 0.5729 MB / 0.5748 GB, free: 90.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/0.9488, allocations: 362.9 kB / 0.5752 GB, free: 90.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00719/0.956, allocations: 6.403 MB / 0.5814 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.9579, allocations: 93.02 kB / 0.5815 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/0.9582, allocations: 66.8 kB / 0.5816 GB, free: 87.79 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 (172): * Single equations (assignments): 169 * 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.0003702/0.9586, allocations: 147 kB / 0.5817 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003453/0.962, allocations: 2.068 MB / 0.5838 GB, free: 87.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.9624, allocations: 157.4 kB / 0.5839 GB, free: 87.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/0.966, allocations: 2.233 MB / 0.5861 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.966, allocations: 12.78 kB / 0.5861 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.9661, allocations: 6.156 kB / 0.5861 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.9661, allocations: 10.52 kB / 0.5861 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007319/0.9734, allocations: 4.55 MB / 0.5906 GB, free: 86.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.9734, allocations: 6.125 kB / 0.5906 GB, free: 86.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009068/0.9744, allocations: 231.1 kB / 0.5908 GB, free: 86.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.9759, allocations: 0.6387 MB / 0.5914 GB, free: 86.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.737e-05/0.976, allocations: 17.86 kB / 0.5914 GB, free: 86.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007846/0.9838, allocations: 8.067 MB / 0.5993 GB, free: 83.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.9839, allocations: 3.188 kB / 0.5993 GB, free: 83.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/0.9885, allocations: 3.465 MB / 0.6027 GB, free: 82.58 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000978/0.9896, allocations: 396.4 kB / 0.6031 GB, free: 82.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/0.9898, allocations: 21.19 kB / 0.6031 GB, free: 82.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009105/0.9907, allocations: 78.48 kB / 0.6032 GB, free: 82.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.991, allocations: 102.2 kB / 0.6033 GB, free: 82.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.411e-05/0.9911, allocations: 42.73 kB / 0.6033 GB, free: 82.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.9924, allocations: 0.8371 MB / 0.6041 GB, free: 82.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9924, allocations: 0 / 0.6041 GB, free: 82.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002029/0.9945, allocations: 482.3 kB / 0.6046 GB, free: 82.29 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 (105): * Single equations (assignments): 102 * 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.004919/0.9994, allocations: 5.063 MB / 0.6095 GB, free: 80.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003258/1.003, allocations: 2.238 MB / 0.6117 GB, free: 79.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/1.003, allocations: 1.188 kB / 0.6117 GB, free: 79.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/1.005, allocations: 1.451 MB / 0.6131 GB, free: 78.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/1.007, allocations: 356 kB / 0.6135 GB, free: 78.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008323/1.016, allocations: 4.346 MB / 0.6177 GB, free: 77.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/1.017, allocations: 1.934 MB / 0.6196 GB, free: 76.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001519/1.019, allocations: 372 kB / 0.62 GB, free: 76.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009953/1.02, allocations: 0.8875 MB / 0.6208 GB, free: 75.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.193e-06/1.02, allocations: 4 kB / 0.6208 GB, free: 75.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07976/1.099, allocations: 40.93 MB / 0.6608 GB, free: 73.14 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/1.1, allocations: 173.2 kB / 0.661 GB, free: 72.94 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.26/4.359, allocations: 0 / 0.661 GB, free: 72.94 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