Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001111/0.001111, allocations: 105.8 kB / 17.06 MB, free: 6.016 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.001104/0.001104, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1785/0.1785, allocations: 37.98 MB / 309.2 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 67.89 kB / 431.4 MB, free: 16.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09722, allocations: 55.23 MB / 486.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006322/0.1036, allocations: 4.532 MB / 491.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.1064, allocations: 1.539 MB / 492.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000357/0.1068, allocations: 15.88 kB / 492.7 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004502/0.1072, allocations: 123.3 kB / 492.8 MB, free: 2.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008226/0.1081, allocations: 274.4 kB / 493.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003523/0.1085, allocations: 103.9 kB / 493.2 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009991/0.1095, allocations: 0.5136 MB / 493.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.1098, allocations: 159.9 kB / 493.9 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004203/0.1102, allocations: 199.2 kB / 494 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003826/0.1106, allocations: 215.1 kB / 494.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.1107, allocations: 24 kB / 494.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.496e-05/0.1108, allocations: 28 kB / 494.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1109, allocations: 99.7 kB / 494.4 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.1112, allocations: 187 kB / 494.6 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.1117, allocations: 374.7 kB / 495 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.1117, allocations: 0 / 495 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1117, allocations: 0 / 495 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.1117, allocations: 0 / 495 MB, free: 0.5781 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00128/0.113, allocations: 0.671 MB / 495.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.113, allocations: 15.88 kB / 495.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.534e-05/0.1131, allocations: 58.73 kB / 495.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.1132, allocations: 40.47 kB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006636/0.1139, allocations: 419.3 kB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.1139, allocations: 16.56 kB / 496.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.401e-05/0.114, allocations: 28 kB / 496.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.1145, allocations: 338.2 kB / 496.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1145, allocations: 3.938 kB / 496.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.1145, allocations: 12 kB / 496.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1146, allocations: 4 kB / 496.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003283/0.1149, allocations: 205.5 kB / 496.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.1166, allocations: 1.47 MB / 498.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.117, allocations: 198.2 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.1171, allocations: 79.55 kB / 498.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.1172, allocations: 7.938 kB / 498.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.1172, allocations: 46.48 kB / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.743e-06/0.1172, allocations: 0 / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001114/0.1183, allocations: 0.6947 MB / 499.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.1184, allocations: 132.5 kB / 499.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.1187, allocations: 313.6 kB / 499.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1187, allocations: 33.7 kB / 499.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1189, allocations: 219.7 kB / 499.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.119, allocations: 63.02 kB / 500 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.307e-05/0.119, allocations: 45.7 kB / 0.4883 GB, free: 11.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1192, allocations: 350.9 kB / 0.4886 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.364e-05/0.1193, allocations: 59.89 kB / 0.4887 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1194, allocations: 140.8 kB / 0.4888 GB, free: 10.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.1197, allocations: 220.7 kB / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1197, allocations: 4 kB / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003544/0.1201, allocations: 252.9 kB / 0.4893 GB, free: 9.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1201, allocations: 8 kB / 0.4893 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1201, allocations: 7.984 kB / 0.4893 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1201, allocations: 8.375 kB / 0.4893 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.1205, allocations: 87.89 kB / 0.4894 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008738/0.1214, allocations: 1.381 MB / 0.4907 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1215, allocations: 8 kB / 0.4907 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.1216, allocations: 15.98 kB / 0.4908 GB, free: 8.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.1217, allocations: 165.6 kB / 0.4909 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.1218, allocations: 31.62 kB / 0.4909 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.1222, allocations: 184.6 kB / 0.4911 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1222, allocations: 4 kB / 0.4911 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.1222, allocations: 0 / 0.4911 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1222, allocations: 4 kB / 0.4911 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.1229, allocations: 0.5532 MB / 0.4917 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.123, allocations: 0 / 0.4917 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.1232, allocations: 39.92 kB / 0.4917 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1232, allocations: 8.031 kB / 0.4917 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1232, allocations: 4 kB / 0.4917 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.1232, allocations: 4 kB / 0.4917 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1232, allocations: 7.875 kB / 0.4917 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004407/0.1237, allocations: 494.4 kB / 0.4922 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.1238, allocations: 108.7 kB / 0.4923 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1238, allocations: 8.031 kB / 0.4923 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.124, allocations: 4 kB / 0.4923 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.1241, allocations: 15.92 kB / 0.4923 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1241, allocations: 4 kB / 0.4923 GB, free: 6.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.1243, allocations: 223.2 kB / 0.4926 GB, free: 6.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1243, allocations: 0 / 0.4926 GB, free: 6.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1247, allocations: 56 kB / 0.4926 GB, free: 6.344 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006981/0.1254, allocations: 1.035 MB / 0.4936 GB, free: 5.273 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.1257, allocations: 156 kB / 0.4938 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1258, allocations: 7.875 kB / 0.4938 GB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.814e-05/0.1259, allocations: 63.92 kB / 0.4938 GB, free: 5.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.1266, allocations: 94.09 kB / 0.4939 GB, free: 4.961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.1305, allocations: 3.25 MB / 0.4971 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.1309, allocations: 0.8028 MB / 0.4979 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.1311, allocations: 54.94 kB / 0.4979 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.1313, allocations: 111.4 kB / 0.498 GB, free: 0.543 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1313, allocations: 4 kB / 0.498 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.1565, allocations: 6.811 MB / 0.5047 GB, free: 9.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.68, allocations: 8 kB / 0.5047 GB, free: 9.664 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)