Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002033/0.002033, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.3 MB / 213.7 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 91.94 kB / 261.8 MB, free: 1.609 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2503/0.2503, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.687e-05/1.695e-05, allocations: 0 / 410 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5562/0.6635, allocations: 117.4 MB / 0.57 GB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/0.6639, allocations: 93.95 kB / 0.5701 GB, free: 9.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1396/0.8035, allocations: 30.97 MB / 0.6004 GB, free: 312 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.8035, allocations: 0 / 0.6004 GB, free: 312 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001024/0.8036, allocations: 31.92 kB / 0.6004 GB, free: 280 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003736/0.8074, allocations: 1.157 MB / 0.6015 GB, free: 15.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.8075, allocations: 8.031 kB / 0.6015 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.8085, allocations: 145.2 kB / 0.6017 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/0.8123, allocations: 0.9872 MB / 0.6026 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.559e-05/0.8124, allocations: 24 kB / 0.6026 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003264/0.8128, allocations: 63.17 kB / 0.6027 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002526/0.8153, allocations: 0.805 MB / 0.6035 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/0.8182, allocations: 1.003 MB / 0.6045 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-05/0.8183, allocations: 0 / 0.6045 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.8184, allocations: 11.98 kB / 0.6045 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001915/0.8186, allocations: 56.86 kB / 0.6045 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009989/0.8286, allocations: 4.39 MB / 0.6088 GB, free: 8.945 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.83, allocations: 0.5366 MB / 0.6093 GB, free: 8.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008518/0.8309, allocations: 349.7 kB / 0.6097 GB, free: 8.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.832e-05/0.831, allocations: 16.48 kB / 0.6097 GB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.831, allocations: 38.44 kB / 0.6097 GB, free: 8.262 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 3.206e-06/0.831, allocations: 0 / 0.6097 GB, free: 8.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=62): time 0.004705/0.8357, allocations: 1.837 MB / 0.6115 GB, free: 6.672 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.8359, allocations: 137.1 kB / 0.6117 GB, free: 6.508 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009537/0.8369, allocations: 490.4 kB / 0.6121 GB, free: 6.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.837, allocations: 25.7 kB / 0.6122 GB, free: 6.098 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004286/0.8374, allocations: 0.5108 MB / 0.6126 GB, free: 5.695 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/0.8377, allocations: 210.9 kB / 0.6129 GB, free: 5.512 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.8378, allocations: 0 / 0.6129 GB, free: 5.512 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.838, allocations: 347.6 kB / 0.6132 GB, free: 5.176 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006034/0.8386, allocations: 235.6 kB / 0.6134 GB, free: 5.035 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008597/0.8395, allocations: 496.1 kB / 0.6139 GB, free: 4.543 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004361/0.8438, allocations: 0.7673 MB / 0.6146 GB, free: 3.758 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/0.8439, allocations: 4 kB / 0.6146 GB, free: 3.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.004848/0.8487, allocations: 1.3 MB / 0.6159 GB, free: 2.398 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001586/0.8504, allocations: 3.044 MB / 0.6189 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.746e-05/0.8504, allocations: 8 kB / 0.6189 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003075/0.8535, allocations: 473.6 kB / 0.6193 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.8546, allocations: 135.8 kB / 0.6195 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/0.8607, allocations: 4.006 MB / 0.6234 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.8618, allocations: 24.08 kB / 0.6234 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.862, allocations: 39.98 kB / 0.6234 GB, free: 10.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.862, allocations: 4 kB / 0.6234 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004256/0.8662, allocations: 1.196 MB / 0.6246 GB, free: 8.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.403e-05/0.8663, allocations: 8 kB / 0.6246 GB, free: 8.922 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002715/0.869, allocations: 434.5 kB / 0.625 GB, free: 8.488 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.8701, allocations: 143.8 kB / 0.6252 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0141/0.8842, allocations: 7.113 MB / 0.6321 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/0.8851, allocations: 15.98 kB / 0.6321 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.038e-05/0.8852, allocations: 39.98 kB / 0.6322 GB, free: 0.8164 MB / 426.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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003638/0.8855, allocations: 140.7 kB / 0.6323 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001882/0.8874, allocations: 0.7038 MB / 0.633 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.8877, allocations: 79.08 kB / 0.6331 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.8897, allocations: 0.7516 MB / 0.6338 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.8897, allocations: 8 kB / 0.6338 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.8897, allocations: 8 kB / 0.6338 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.8898, allocations: 7.938 kB / 0.6338 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.894, allocations: 1.662 MB / 0.6354 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.8941, allocations: 7.984 kB / 0.6355 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.8954, allocations: 131.8 kB / 0.6356 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.8957, allocations: 53.75 kB / 0.6356 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.8958, allocations: 11.98 kB / 0.6356 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.8986, allocations: 2.656 MB / 0.6382 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.8986, allocations: 3.953 kB / 0.6382 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.9014, allocations: 1.262 MB / 0.6395 GB, free: 8.859 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005233/0.902, allocations: 204.2 kB / 0.6397 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.9021, allocations: 11.95 kB / 0.6397 GB, free: 8.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006993/0.9028, allocations: 19.92 kB / 0.6397 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.903, allocations: 40.59 kB / 0.6397 GB, free: 8.566 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.401e-05/0.9031, allocations: 20.11 kB / 0.6398 GB, free: 8.547 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007145/0.9038, allocations: 367.2 kB / 0.6401 GB, free: 8.195 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9038, allocations: 0 / 0.6401 GB, free: 8.195 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002166/0.906, allocations: 332 kB / 0.6404 GB, free: 7.871 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003444/0.9094, allocations: 2.152 MB / 0.6425 GB, free: 5.645 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005367/0.9149, allocations: 1.831 MB / 0.6443 GB, free: 3.762 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.9149, allocations: 3.938 kB / 0.6443 GB, free: 3.758 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.9161, allocations: 0.507 MB / 0.6448 GB, free: 3.234 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.9176, allocations: 145.2 kB / 0.6449 GB, free: 3.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/0.9235, allocations: 1.867 MB / 0.6468 GB, free: 1.168 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.9247, allocations: 1.127 MB / 0.6479 GB, free: 16 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008995/0.9256, allocations: 339.4 kB / 0.6482 GB, free: 15.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.272e-06/0.9256, allocations: 0 / 0.6482 GB, free: 15.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.192/4.117, allocations: 25.13 MB / 0.6727 GB, free: 6.527 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)