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.002474/0.002473, allocations: 181.7 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001122, allocations: 94.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2715/0.2715, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006174/0.0006175, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1161, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5638/0.6799, allocations: 118.2 MB / 0.5833 GB, free: 13.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.6803, allocations: 98.14 kB / 0.5834 GB, free: 13.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1362/0.8166, allocations: 31.3 MB / 0.614 GB, free: 2.801 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.8166, allocations: 4 kB / 0.614 GB, free: 2.797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001077/0.8167, allocations: 27.94 kB / 0.614 GB, free: 2.77 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.004305/0.8211, allocations: 1.277 MB / 0.6153 GB, free: 1.512 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.8211, allocations: 8.031 kB / 0.6153 GB, free: 1.504 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004016/0.8215, allocations: 134.9 kB / 0.6154 GB, free: 1.414 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007756/0.8223, allocations: 138.6 kB / 0.6155 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003606/0.826, allocations: 1.005 MB / 0.6165 GB, free: 460 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.657e-05/0.8261, allocations: 70.92 kB / 0.6166 GB, free: 416 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/0.8264, allocations: 101.8 kB / 0.6167 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003002/0.8294, allocations: 1.152 MB / 0.6178 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/0.8295, allocations: 8 kB / 0.6178 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.8297, allocations: 35.5 kB / 0.6178 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.8299, allocations: 59.41 kB / 0.6179 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002946/0.8328, allocations: 0.9404 MB / 0.6188 GB, free: 14.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.8432, allocations: 4.645 MB / 0.6234 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.8451, allocations: 0.6089 MB / 0.6239 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.8e-05/0.8452, allocations: 8.609 kB / 0.624 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.072e-05/0.8452, allocations: 44.94 kB / 0.624 GB, free: 10.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 4.299e-06/0.8453, allocations: 0 / 0.624 GB, free: 10.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=62): time 0.008466/0.8537, allocations: 2.576 MB / 0.6265 GB, free: 8.051 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/0.8539, allocations: 133.1 kB / 0.6266 GB, free: 7.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.855, allocations: 0.5844 MB / 0.6272 GB, free: 7.434 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.8552, allocations: 36.14 kB / 0.6272 GB, free: 7.398 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004183/0.8556, allocations: 0.4949 MB / 0.6277 GB, free: 7.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.8559, allocations: 219.1 kB / 0.6279 GB, free: 6.832 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.472e-05/0.856, allocations: 17.44 kB / 0.628 GB, free: 6.828 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.8562, allocations: 340 kB / 0.6283 GB, free: 6.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008551/0.857, allocations: 275.6 kB / 0.6285 GB, free: 6.316 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.8581, allocations: 0.5205 MB / 0.6291 GB, free: 5.793 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00456/0.8627, allocations: 0.8274 MB / 0.6299 GB, free: 5.078 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.8627, allocations: 7.953 kB / 0.6299 GB, free: 5.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005148/0.8679, allocations: 1.429 MB / 0.6313 GB, free: 3.582 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001445/0.8693, allocations: 2.969 MB / 0.6342 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/0.8694, allocations: 12 kB / 0.6342 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003179/0.8726, allocations: 489.6 kB / 0.6346 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.8737, allocations: 147.8 kB / 0.6348 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006024/0.8798, allocations: 4.045 MB / 0.6387 GB, free: 11.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.8809, allocations: 48.14 kB / 0.6388 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.8811, allocations: 32 kB / 0.6388 GB, free: 11.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.8811, allocations: 4 kB / 0.6388 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004689/0.8858, allocations: 1.311 MB / 0.6401 GB, free: 9.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.134e-05/0.8859, allocations: 8 kB / 0.6401 GB, free: 9.949 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.8887, allocations: 454.5 kB / 0.6405 GB, free: 9.496 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.8899, allocations: 139.8 kB / 0.6407 GB, free: 9.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/0.9059, allocations: 7.534 MB / 0.648 GB, free: 1.402 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00078/0.9068, allocations: 35.92 kB / 0.6481 GB, free: 1.367 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.49e-05/0.9069, allocations: 43.92 kB / 0.6481 GB, free: 1.324 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: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009364/0.9078, allocations: 397.1 kB / 0.6485 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002805/0.9081, allocations: 86.92 kB / 0.6486 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.9106, allocations: 0.8378 MB / 0.6494 GB, free: 15.97 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/0.9107, allocations: 11.98 kB / 0.6494 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.9107, allocations: 0 / 0.6494 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.9107, allocations: 3.984 kB / 0.6494 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005035/0.9158, allocations: 1.853 MB / 0.6512 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.9158, allocations: 3.953 kB / 0.6512 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.9173, allocations: 143.8 kB / 0.6513 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.9176, allocations: 49.7 kB / 0.6514 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.3e-05/0.9177, allocations: 19.98 kB / 0.6514 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.9204, allocations: 2.665 MB / 0.654 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.9205, allocations: 4.031 kB / 0.654 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.924, allocations: 1.374 MB / 0.6554 GB, free: 9.395 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005912/0.9246, allocations: 204.1 kB / 0.6556 GB, free: 9.176 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.9248, allocations: 19.98 kB / 0.6556 GB, free: 9.156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007598/0.9256, allocations: 27.98 kB / 0.6556 GB, free: 9.129 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.9258, allocations: 56.38 kB / 0.6557 GB, free: 9.074 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/0.9259, allocations: 16 kB / 0.6557 GB, free: 9.059 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009822/0.9269, allocations: 463 kB / 0.6561 GB, free: 8.613 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9269, allocations: 0 / 0.6561 GB, free: 8.613 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002361/0.9293, allocations: 376 kB / 0.6565 GB, free: 8.246 MB / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004291/0.9336, allocations: 2.26 MB / 0.6587 GB, free: 5.91 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006333/0.94, allocations: 1.986 MB / 0.6606 GB, free: 3.855 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.94, allocations: 0 / 0.6606 GB, free: 3.855 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.9415, allocations: 0.5645 MB / 0.6612 GB, free: 3.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.9433, allocations: 207 kB / 0.6614 GB, free: 3.066 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/0.9639, allocations: 11.36 MB / 0.6725 GB, free: 7.375 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.9651, allocations: 1.131 MB / 0.6736 GB, free: 6.215 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008828/0.966, allocations: 343.3 kB / 0.6739 GB, free: 5.879 MB / 474.7 MB Notification: Performance of SimCode: time 1.413e-06/0.966, allocations: 0 / 0.6739 GB, free: 5.879 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.224/4.19, allocations: 26.05 MB / 0.6993 GB, free: 11.8 MB / 0.4948 GB (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)