Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001475/0.001475, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.299/1.299, 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.001664/0.001664, allocations: 117.5 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1584/0.1584, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003638, allocations: 12 kB / 403.9 MB, free: 68.69 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1046, allocations: 53.23 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.4661, allocations: 112.1 MB / 0.5559 GB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.4665, allocations: 98.39 kB / 0.556 GB, free: 15.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08203/0.5485, allocations: 30.56 MB / 0.5858 GB, free: 5.363 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5486, allocations: 0 / 0.5858 GB, free: 5.363 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.748e-05/0.5487, allocations: 35.86 kB / 0.5859 GB, free: 5.328 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003219/0.5519, allocations: 1.24 MB / 0.5871 GB, free: 4.102 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.552, allocations: 16.02 kB / 0.5871 GB, free: 4.086 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003271/0.5523, allocations: 138.2 kB / 0.5872 GB, free: 3.992 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/0.5529, allocations: 126.7 kB / 0.5873 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.5552, allocations: 0.9846 MB / 0.5883 GB, free: 3.051 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.5553, allocations: 58.81 kB / 0.5884 GB, free: 3.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.5556, allocations: 90.2 kB / 0.5884 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.5575, allocations: 1.13 MB / 0.5895 GB, free: 2.105 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.5575, allocations: 4 kB / 0.5895 GB, free: 2.102 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.544e-05/0.5576, allocations: 33.06 kB / 0.5896 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.5577, allocations: 56.3 kB / 0.5896 GB, free: 2.047 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.5594, allocations: 0.9206 MB / 0.5905 GB, free: 1.426 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006107/0.5655, allocations: 4.424 MB / 0.5948 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.5665, allocations: 0.594 MB / 0.5954 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.5666, allocations: 16.91 kB / 0.5954 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.5666, allocations: 38.56 kB / 0.5955 GB, free: 13.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=57): time 2.845e-06/0.5667, allocations: 0 / 0.5955 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=62): time 0.004903/0.5716, allocations: 2.824 MB / 0.5982 GB, free: 10.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/0.5717, allocations: 137.1 kB / 0.5984 GB, free: 10.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007909/0.5725, allocations: 0.554 MB / 0.5989 GB, free: 10.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.5725, allocations: 34.14 kB / 0.5989 GB, free: 10.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.5729, allocations: 465.3 kB / 0.5994 GB, free: 9.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.5731, allocations: 220.8 kB / 0.5996 GB, free: 9.469 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.5731, allocations: 16 kB / 0.5996 GB, free: 9.453 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.5733, allocations: 390.8 kB / 0.6 GB, free: 9.062 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004835/0.5738, allocations: 269.8 kB / 0.6002 GB, free: 8.797 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006196/0.5744, allocations: 0.5034 MB / 0.6007 GB, free: 8.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.5771, allocations: 0.8146 MB / 0.6015 GB, free: 7.355 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.5771, allocations: 0 / 0.6015 GB, free: 7.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002957/0.5801, allocations: 1.46 MB / 0.603 GB, free: 5.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001176/0.5812, allocations: 2.791 MB / 0.6057 GB, free: 2.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.5813, allocations: 11.94 kB / 0.6057 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/0.583, allocations: 496.7 kB / 0.6062 GB, free: 2.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00051/0.5835, allocations: 131.8 kB / 0.6063 GB, free: 2.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/0.5873, allocations: 3.995 MB / 0.6102 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/0.5879, allocations: 43.88 kB / 0.6102 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.463e-05/0.588, allocations: 40.19 kB / 0.6103 GB, free: 13.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.588, allocations: 4 kB / 0.6103 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002622/0.5907, allocations: 1.29 MB / 0.6115 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.5907, allocations: 12.03 kB / 0.6116 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.5923, allocations: 446.4 kB / 0.612 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/0.5928, allocations: 139.7 kB / 0.6121 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009145/0.602, allocations: 7.562 MB / 0.6195 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006244/0.6026, allocations: 35.89 kB / 0.6195 GB, free: 3.871 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/0.6027, allocations: 32 kB / 0.6196 GB, free: 3.84 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. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * 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 initialization (67): * Single equations (assignments): 64 * 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.0007617/0.6035, allocations: 400.7 kB / 0.6199 GB, free: 3.438 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.6037, allocations: 79.25 kB / 0.62 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.6052, allocations: 0.8412 MB / 0.6208 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.6053, allocations: 8 kB / 0.6208 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.6053, allocations: 0 / 0.6208 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6053, allocations: 0 / 0.6208 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003155/0.6084, allocations: 1.83 MB / 0.6226 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6085, allocations: 8.031 kB / 0.6226 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007228/0.6092, allocations: 139.8 kB / 0.6228 GB, free: 412 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000131/0.6093, allocations: 41.7 kB / 0.6228 GB, free: 364 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.22e-05/0.6094, allocations: 23.98 kB / 0.6228 GB, free: 340 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.6114, allocations: 2.676 MB / 0.6255 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6114, allocations: 0 / 0.6255 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.6132, allocations: 1.348 MB / 0.6268 GB, free: 11.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.6136, allocations: 196.2 kB / 0.627 GB, free: 11.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.6137, allocations: 15.98 kB / 0.627 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.6142, allocations: 39.84 kB / 0.627 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.6143, allocations: 40.5 kB / 0.627 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.6143, allocations: 19.94 kB / 0.6271 GB, free: 11.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00058/0.6149, allocations: 443 kB / 0.6275 GB, free: 11.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.572e-06/0.6149, allocations: 0 / 0.6275 GB, free: 11.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001454/0.6164, allocations: 379.9 kB / 0.6278 GB, free: 10.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 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.002307/0.6187, allocations: 2.146 MB / 0.6299 GB, free: 8.633 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003459/0.6222, allocations: 1.921 MB / 0.6318 GB, free: 6.648 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.6222, allocations: 4 kB / 0.6318 GB, free: 6.645 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007765/0.623, allocations: 0.5552 MB / 0.6324 GB, free: 6.062 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009055/0.6239, allocations: 195.1 kB / 0.6326 GB, free: 5.871 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.6354, allocations: 10.81 MB / 0.6431 GB, free: 10.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007789/0.6362, allocations: 1.115 MB / 0.6442 GB, free: 9.664 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007208/0.6369, allocations: 202.3 kB / 0.6444 GB, free: 9.461 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004474/0.6374, allocations: 335.3 kB / 0.6447 GB, free: 9.133 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/0.6374, allocations: 3.938 kB / 0.6447 GB, free: 9.129 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.6778, allocations: 22.14 MB / 0.6663 GB, free: 2.977 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.678, allocations: 207.5 kB / 0.6665 GB, free: 2.73 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.311, allocations: 0 / 0.6665 GB, free: 2.73 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)