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.001107/0.001107, allocations: 182 kB / 13.64 MB, free: 1.676 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.77/1.77, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001803/0.001803, allocations: 108.7 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1756/0.1756, allocations: 37.9 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.406e-05/4.408e-05, allocations: 0 / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3288, allocations: 53.22 MB / 450.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6241/0.953, allocations: 116 MB / 0.5536 GB, free: 28.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003619/0.9535, allocations: 92.62 kB / 0.5537 GB, free: 28.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08711/1.041, allocations: 34.73 MB / 0.5876 GB, free: 18.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.747e-06/1.041, allocations: 0 / 0.5876 GB, free: 18.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.081e-05/1.041, allocations: 34.56 kB / 0.5876 GB, free: 18.21 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: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.003291/1.044, allocations: 1.563 MB / 0.5892 GB, free: 17.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.48e-05/1.044, allocations: 11.06 kB / 0.5892 GB, free: 17.13 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002627/1.044, allocations: 179.2 kB / 0.5894 GB, free: 17.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006075/1.045, allocations: 163.4 kB / 0.5895 GB, free: 16.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003027/1.048, allocations: 1.25 MB / 0.5907 GB, free: 16.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/1.048, allocations: 188.8 kB / 0.5909 GB, free: 16.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002582/1.049, allocations: 124 kB / 0.591 GB, free: 16.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/1.051, allocations: 1.677 MB / 0.5927 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.66e-05/1.051, allocations: 7.875 kB / 0.5927 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/1.051, allocations: 46.69 kB / 0.5927 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/1.051, allocations: 78.91 kB / 0.5928 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/1.053, allocations: 1.251 MB / 0.594 GB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008108/1.062, allocations: 6.158 MB / 0.6 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/1.063, allocations: 0.8311 MB / 0.6008 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008595/1.064, allocations: 0.5323 MB / 0.6014 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.571e-05/1.064, allocations: 12.77 kB / 0.6014 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009502/1.065, allocations: 0.682 MB / 0.602 GB, free: 10.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 4.228e-06/1.065, allocations: 0 / 0.602 GB, free: 10.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.005765/1.071, allocations: 3.435 MB / 0.6054 GB, free: 8.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.071, allocations: 153.6 kB / 0.6055 GB, free: 8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/1.072, allocations: 0.6777 MB / 0.6062 GB, free: 7.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.072, allocations: 59.06 kB / 0.6063 GB, free: 7.434 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000549/1.073, allocations: 0.5381 MB / 0.6068 GB, free: 7.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/1.073, allocations: 302.4 kB / 0.6071 GB, free: 6.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-05/1.073, allocations: 27.5 kB / 0.6071 GB, free: 6.766 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/1.073, allocations: 404.8 kB / 0.6075 GB, free: 6.398 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007771/1.074, allocations: 0.5438 MB / 0.608 GB, free: 6.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009806/1.075, allocations: 0.8475 MB / 0.6088 GB, free: 5.309 MB / 378.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.004114/1.079, allocations: 2 MB / 0.6108 GB, free: 3.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/1.079, allocations: 4 kB / 0.6108 GB, free: 3.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003413/1.083, allocations: 2.194 MB / 0.6129 GB, free: 1.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001879/1.084, allocations: 3.806 MB / 0.6167 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/1.084, allocations: 8 kB / 0.6167 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/1.087, allocations: 0.8774 MB / 0.6175 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007147/1.087, allocations: 171.7 kB / 0.6177 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/1.092, allocations: 3.438 MB / 0.621 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/1.093, allocations: 91.94 kB / 0.6211 GB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/1.093, allocations: 71.95 kB / 0.6212 GB, free: 8.125 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/1.093, allocations: 11.92 kB / 0.6212 GB, free: 8.113 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003954/1.097, allocations: 2.275 MB / 0.6234 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/1.097, allocations: 8 kB / 0.6234 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/1.099, allocations: 0.8739 MB / 0.6243 GB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/1.099, allocations: 167.7 kB / 0.6245 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004129/1.104, allocations: 3.427 MB / 0.6278 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000998/1.105, allocations: 79.84 kB / 0.6279 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/1.105, allocations: 71.95 kB / 0.6279 GB, free: 1.004 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 97 * 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%) 2} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.000528/1.105, allocations: 216.5 kB / 0.6282 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003766/1.106, allocations: 106.8 kB / 0.6283 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/1.108, allocations: 1.22 MB / 0.6294 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/1.108, allocations: 16 kB / 0.6295 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.108, allocations: 4 kB / 0.6295 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/1.108, allocations: 3.984 kB / 0.6295 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004936/1.113, allocations: 2.602 MB / 0.632 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/1.113, allocations: 0 / 0.632 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/1.114, allocations: 155.8 kB / 0.6322 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/1.114, allocations: 57.69 kB / 0.6322 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.981e-05/1.114, allocations: 27.97 kB / 0.6322 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/1.117, allocations: 2.77 MB / 0.6349 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.117, allocations: 0 / 0.6349 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/1.12, allocations: 1.882 MB / 0.6368 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007126/1.12, allocations: 295.7 kB / 0.6371 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004395/1.121, allocations: 91.95 kB / 0.6372 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/1.122, allocations: 119.8 kB / 0.6373 GB, free: 6.969 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/1.122, allocations: 60.62 kB / 0.6373 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/1.122, allocations: 27.98 kB / 0.6374 GB, free: 6.883 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009638/1.123, allocations: 0.5226 MB / 0.6379 GB, free: 6.363 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.123, allocations: 0 / 0.6379 GB, free: 6.363 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002441/1.126, allocations: 487.9 kB / 0.6383 GB, free: 5.887 MB / 410.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 70 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004155/1.13, allocations: 2.714 MB / 0.641 GB, free: 3.105 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004868/1.135, allocations: 2.797 MB / 0.6437 GB, free: 272 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.135, allocations: 0 / 0.6437 GB, free: 272 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/1.136, allocations: 0.7376 MB / 0.6444 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/1.137, allocations: 237.3 kB / 0.6447 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006158/1.143, allocations: 2.418 MB / 0.647 GB, free: 12.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/1.145, allocations: 1.247 MB / 0.6482 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001441/1.146, allocations: 395.6 kB / 0.6486 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/1.147, allocations: 399.3 kB / 0.649 GB, free: 10.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/1.147, allocations: 0 / 0.649 GB, free: 10.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07022/1.217, allocations: 29.79 MB / 0.6781 GB, free: 12.91 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/1.217, allocations: 175.9 kB / 0.6783 GB, free: 12.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.192/4.41, allocations: 0 / 0.6783 GB, free: 12.68 MB / 458.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)