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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 106.8 kB / 16.92 MB, free: 5.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1732/0.1732, allocations: 38.03 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 62.92 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.09956, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.009206/0.1088, allocations: 7.167 MB / 464.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004806/0.1136, allocations: 3.031 MB / 467.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007165/0.1144, allocations: 35.81 kB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.1158, allocations: 369.6 kB / 467.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00188/0.1177, allocations: 0.6256 MB / 468.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1189, allocations: 443.2 kB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.1208, allocations: 1.481 MB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.1226, allocations: 1.191 MB / 471.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009839/0.1236, allocations: 0.5721 MB / 471.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.1247, allocations: 0.646 MB / 472.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003217/0.1251, allocations: 112 kB / 472.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007973/0.1259, allocations: 355.5 kB / 473 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005027/0.1264, allocations: 402.9 kB / 473.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000888/0.1273, allocations: 0.5715 MB / 473.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.129, allocations: 1.671 MB / 475.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1291, allocations: 0 / 475.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1291, allocations: 0 / 475.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.928e-05/0.1291, allocations: 0 / 475.6 MB, free: 5.246 MB / 350.1 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.003257/0.1324, allocations: 1.421 MB / 477 MB, free: 3.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1324, allocations: 19.83 kB / 477 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/0.1326, allocations: 135.8 kB / 477.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007446/0.1334, allocations: 167.5 kB / 477.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.1348, allocations: 0.7894 MB / 478.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.1349, allocations: 66 kB / 478.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.1351, allocations: 95.83 kB / 478.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.1369, allocations: 1.149 MB / 479.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.803e-05/0.1369, allocations: 7.938 kB / 479.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-05/0.137, allocations: 35.98 kB / 479.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.1372, allocations: 65.97 kB / 479.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1389, allocations: 0.9407 MB / 480.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006747/0.1456, allocations: 4.628 MB / 485.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.1468, allocations: 0.6881 MB / 485.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005999/0.1474, allocations: 334.6 kB / 486.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.675e-05/0.1475, allocations: 8.547 kB / 486.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.1475, allocations: 47.12 kB / 486.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.615e-06/0.1475, allocations: 0 / 486.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.005037/0.1526, allocations: 2.339 MB / 488.5 MB, free: 7.805 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.861e-05/0.1527, allocations: 141.2 kB / 488.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009298/0.1536, allocations: 0.6763 MB / 489.3 MB, free: 6.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.154e-05/0.1537, allocations: 41.7 kB / 489.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.1541, allocations: 482.8 kB / 489.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.1543, allocations: 228.8 kB / 490.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/0.1545, allocations: 150.6 kB / 490.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.1547, allocations: 382.8 kB / 490.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005115/0.1553, allocations: 284.6 kB / 490.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006755/0.1559, allocations: 0.5121 MB / 491.4 MB, free: 4.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/0.1594, allocations: 1.521 MB / 492.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1594, allocations: 7.875 kB / 492.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002955/0.1624, allocations: 1.375 MB / 494.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.1624, allocations: 8 kB / 494.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.1625, allocations: 8 kB / 494.3 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.164, allocations: 443 kB / 494.7 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.1645, allocations: 143.8 kB / 494.9 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009294/0.1738, allocations: 6.708 MB / 0.4898 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/0.1744, allocations: 35.98 kB / 0.4899 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.268e-05/0.1745, allocations: 39.94 kB / 0.4899 GB, free: 10.04 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008177/0.1753, allocations: 0.5089 MB / 0.4904 GB, free: 9.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005742/0.1759, allocations: 0.4965 MB / 0.4909 GB, free: 8.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00328/0.1792, allocations: 1.486 MB / 0.4923 GB, free: 7.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.348e-06/0.1792, allocations: 0 / 0.4923 GB, free: 7.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002604/0.1818, allocations: 1.301 MB / 0.4936 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1819, allocations: 10.34 kB / 0.4936 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1819, allocations: 12 kB / 0.4936 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.1833, allocations: 441.4 kB / 0.494 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.1839, allocations: 143.8 kB / 0.4942 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008056/0.192, allocations: 6.473 MB / 0.5005 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006212/0.1926, allocations: 35.98 kB / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.54e-05/0.1927, allocations: 39.98 kB / 0.5006 GB, free: 14.55 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $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 (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0002688/0.193, allocations: 232 kB / 0.5008 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.1932, allocations: 82.97 kB / 0.5009 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.1946, allocations: 0.7302 MB / 0.5016 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.1946, allocations: 8 kB / 0.5016 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1946, allocations: 4 kB / 0.5016 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.1946, allocations: 3.984 kB / 0.5016 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.1976, allocations: 1.77 MB / 0.5033 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1976, allocations: 4 kB / 0.5033 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007231/0.1983, allocations: 135.9 kB / 0.5035 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.1984, allocations: 28.78 kB / 0.5035 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.1985, allocations: 12 kB / 0.5035 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.1995, allocations: 1.382 MB / 0.5049 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1995, allocations: 0 / 0.5049 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.2014, allocations: 1.209 MB / 0.506 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003721/0.2018, allocations: 216.1 kB / 0.5062 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.202, allocations: 12 kB / 0.5062 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.2024, allocations: 27.98 kB / 0.5063 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2025, allocations: 44.44 kB / 0.5063 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.642e-05/0.2026, allocations: 16 kB / 0.5063 GB, free: 8.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006774/0.2033, allocations: 483 kB / 0.5068 GB, free: 7.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2033, allocations: 0 / 0.5068 GB, free: 7.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001676/0.205, allocations: 411.9 kB / 0.5072 GB, free: 7.492 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00247/0.2074, allocations: 1.794 MB / 0.5089 GB, free: 5.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00412/0.2116, allocations: 2.096 MB / 0.511 GB, free: 3.516 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.2116, allocations: 1.375 kB / 0.511 GB, free: 3.516 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006977/0.2123, allocations: 445.9 kB / 0.5114 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.2136, allocations: 227.3 kB / 0.5116 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2098/0.4234, allocations: 8.612 MB / 0.52 GB, free: 66.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006647/0.4241, allocations: 1.114 MB / 0.5211 GB, free: 65.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006989/0.4248, allocations: 211.9 kB / 0.5213 GB, free: 65.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.4252, allocations: 345.5 kB / 0.5217 GB, free: 65.83 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4252, allocations: 0 / 0.5217 GB, free: 65.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/0.5612, allocations: 25.09 MB / 0.5462 GB, free: 53.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.28, allocations: 7.031 kB / 0.5462 GB, free: 53.21 MB / 398.1 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/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)