Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001096/0.001096, allocations: 180.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.3/1.3, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001818/0.001818, allocations: 112.7 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1587/0.1587, allocations: 38 MB / 340.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003252, allocations: 8 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08847, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3543/0.4428, allocations: 116.1 MB / 0.5598 GB, free: 11.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.4431, allocations: 97.27 kB / 0.5599 GB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08613/0.5292, allocations: 34.74 MB / 0.5938 GB, free: 13.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5293, allocations: 0 / 0.5938 GB, free: 13.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.67e-05/0.5293, allocations: 31.06 kB / 0.5938 GB, free: 13.46 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: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.003283/0.5326, allocations: 1.675 MB / 0.5955 GB, free: 11.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5327, allocations: 12.02 kB / 0.5955 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002294/0.5329, allocations: 187.7 kB / 0.5957 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004551/0.5334, allocations: 166.6 kB / 0.5958 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.5361, allocations: 1.259 MB / 0.5971 GB, free: 10.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.5363, allocations: 189.5 kB / 0.5972 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000231/0.5365, allocations: 122.5 kB / 0.5974 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/0.5396, allocations: 1.807 MB / 0.5991 GB, free: 8.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/0.5396, allocations: 7.906 kB / 0.5991 GB, free: 8.844 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.5398, allocations: 49.42 kB / 0.5992 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.5399, allocations: 71.73 kB / 0.5992 GB, free: 8.762 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/0.5424, allocations: 1.407 MB / 0.6006 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00782/0.5502, allocations: 6.168 MB / 0.6066 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.5531, allocations: 1.172 MB / 0.6078 GB, free: 1.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.78e-05/0.5532, allocations: 9.5 kB / 0.6078 GB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001621/0.5548, allocations: 0.7957 MB / 0.6086 GB, free: 252 kB / 410.7 MB Notification: Performance of pre-optimization done (n=87): time 3.887e-06/0.5549, allocations: 0 / 0.6086 GB, free: 252 kB / 410.7 MB Notification: Performance of matching and sorting (n=92): time 0.009636/0.5645, allocations: 4.692 MB / 0.6132 GB, free: 11.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.5646, allocations: 149.2 kB / 0.6133 GB, free: 11.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009104/0.5655, allocations: 0.6914 MB / 0.614 GB, free: 10.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.198e-05/0.5656, allocations: 57.69 kB / 0.614 GB, free: 10.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.5661, allocations: 0.534 MB / 0.6145 GB, free: 9.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.5663, allocations: 311.7 kB / 0.6148 GB, free: 9.613 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.5664, allocations: 20 kB / 0.6149 GB, free: 9.594 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.5666, allocations: 415.7 kB / 0.6153 GB, free: 9.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008013/0.5674, allocations: 0.557 MB / 0.6158 GB, free: 8.621 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.5685, allocations: 0.8784 MB / 0.6167 GB, free: 7.609 MB / 426.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004434/0.573, allocations: 2.05 MB / 0.6187 GB, free: 5.523 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.573, allocations: 4 kB / 0.6187 GB, free: 5.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.0039/0.5769, allocations: 2.25 MB / 0.6209 GB, free: 3.238 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001612/0.5785, allocations: 3.801 MB / 0.6246 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.5786, allocations: 15.98 kB / 0.6246 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002056/0.5806, allocations: 0.8813 MB / 0.6255 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.5813, allocations: 179.7 kB / 0.6256 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003436/0.5847, allocations: 3.399 MB / 0.6289 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009221/0.5856, allocations: 95.64 kB / 0.629 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.5858, allocations: 80.12 kB / 0.6291 GB, free: 10.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.5858, allocations: 4 kB / 0.6291 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003635/0.5894, allocations: 2.292 MB / 0.6314 GB, free: 7.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.5895, allocations: 12.03 kB / 0.6314 GB, free: 7.969 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/0.5914, allocations: 0.858 MB / 0.6322 GB, free: 7.098 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/0.592, allocations: 175.7 kB / 0.6324 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003007/0.595, allocations: 3.337 MB / 0.6356 GB, free: 3.426 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/0.596, allocations: 80.16 kB / 0.6357 GB, free: 3.348 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.5961, allocations: 75.94 kB / 0.6358 GB, free: 3.273 MB / 442.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 98 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0009374/0.597, allocations: 0.528 MB / 0.6363 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.5972, allocations: 102.8 kB / 0.6364 GB, free: 2.633 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/0.6001, allocations: 1.444 MB / 0.6378 GB, free: 1.156 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/0.6001, allocations: 23.92 kB / 0.6378 GB, free: 1.133 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.6002, allocations: 4 kB / 0.6378 GB, free: 1.129 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.6002, allocations: 3.984 kB / 0.6378 GB, free: 1.125 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004949/0.6051, allocations: 2.819 MB / 0.6406 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.6052, allocations: 3.984 kB / 0.6406 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.6059, allocations: 151.8 kB / 0.6407 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001399/0.6061, allocations: 53.59 kB / 0.6408 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.272e-05/0.6062, allocations: 27.97 kB / 0.6408 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.6079, allocations: 2.688 MB / 0.6434 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.6079, allocations: 0 / 0.6434 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004008/0.6119, allocations: 2.228 MB / 0.6456 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005647/0.6125, allocations: 287.7 kB / 0.6459 GB, free: 8.426 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.6127, allocations: 95.94 kB / 0.646 GB, free: 8.332 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/0.6135, allocations: 119.9 kB / 0.6461 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.6137, allocations: 48.92 kB / 0.6461 GB, free: 8.168 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.815e-05/0.6137, allocations: 35.97 kB / 0.6462 GB, free: 8.133 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006822/0.6144, allocations: 0.5263 MB / 0.6467 GB, free: 7.609 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6144, allocations: 4 kB / 0.6467 GB, free: 7.605 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001599/0.616, allocations: 476 kB / 0.6471 GB, free: 7.141 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 71 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004521/0.6206, allocations: 3.043 MB / 0.6501 GB, free: 4.031 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004874/0.6255, allocations: 2.945 MB / 0.653 GB, free: 1.039 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.6255, allocations: 4 kB / 0.653 GB, free: 1.035 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.6272, allocations: 0.8624 MB / 0.6538 GB, free: 152 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.6286, allocations: 241.6 kB / 0.6541 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.646, allocations: 15.1 MB / 0.6688 GB, free: 420 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2096/0.8557, allocations: 1.24 MB / 0.67 GB, free: 141.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0013/0.857, allocations: 308.9 kB / 0.6703 GB, free: 141.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006002/0.8576, allocations: 411.2 kB / 0.6707 GB, free: 141.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/0.8576, allocations: 0 / 0.6707 GB, free: 141.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05104/0.9087, allocations: 28.53 MB / 0.6986 GB, free: 140.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.9089, allocations: 201 kB / 0.6988 GB, free: 140.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.62/3.528, allocations: 0 / 0.6988 GB, free: 140.3 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)