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.00154/0.00154, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.001772/0.001772, allocations: 196 kB / 18 MB, free: 5.105 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.362/1.362, 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.1756/0.1756, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001357/0.001357, allocations: 67.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.0946, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006267/0.1009, allocations: 4.529 MB / 491.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.1033, allocations: 1.539 MB / 492.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/0.1037, allocations: 15.88 kB / 492.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.1044, allocations: 111.4 kB / 492.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009555/0.1054, allocations: 282.3 kB / 493.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.1057, allocations: 103.9 kB / 493.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009461/0.1067, allocations: 0.5174 MB / 493.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.107, allocations: 163.9 kB / 493.9 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003901/0.1074, allocations: 195.2 kB / 494 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.1078, allocations: 215.1 kB / 494.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.072e-05/0.1079, allocations: 24 kB / 494.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.566e-05/0.1079, allocations: 31.94 kB / 494.3 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.1081, allocations: 99.72 kB / 494.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.1083, allocations: 183 kB / 494.6 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.1087, allocations: 378.7 kB / 495 MB, free: 468 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1087, allocations: 0 / 495 MB, free: 468 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1087, allocations: 0 / 495 MB, free: 468 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1087, allocations: 0 / 495 MB, free: 468 kB / 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.001136/0.1099, allocations: 0.6709 MB / 495.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1099, allocations: 15.89 kB / 495.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.549e-05/0.11, allocations: 58.73 kB / 495.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.399e-05/0.1101, allocations: 40.47 kB / 495.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007614/0.1109, allocations: 411.3 kB / 496.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1109, allocations: 16.56 kB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.1109, allocations: 28 kB / 496.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.1115, allocations: 334.2 kB / 496.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.1115, allocations: 7.938 kB / 496.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1115, allocations: 12 kB / 496.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1116, allocations: 7.984 kB / 496.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003379/0.1119, allocations: 209.5 kB / 496.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1135, allocations: 1.47 MB / 498.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.1139, allocations: 198.3 kB / 498.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.1141, allocations: 75.48 kB / 498.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.1141, allocations: 7.984 kB / 498.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1141, allocations: 46.44 kB / 498.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.1141, allocations: 0 / 498.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001066/0.1152, allocations: 0.6906 MB / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.1153, allocations: 132.9 kB / 499.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1156, allocations: 317.6 kB / 499.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1156, allocations: 33.7 kB / 499.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.1158, allocations: 215.8 kB / 499.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.1158, allocations: 67 kB / 500 MB, free: 11.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.1159, allocations: 49.69 kB / 0.4883 GB, free: 10.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.116, allocations: 342.8 kB / 0.4886 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1162, allocations: 59.89 kB / 0.4887 GB, free: 10.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.1163, allocations: 148.8 kB / 0.4888 GB, free: 10.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.1166, allocations: 216.7 kB / 0.489 GB, free: 10.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.1166, allocations: 4 kB / 0.489 GB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003596/0.117, allocations: 256.9 kB / 0.4893 GB, free: 9.875 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.117, allocations: 8 kB / 0.4893 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.117, allocations: 7.984 kB / 0.4893 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.117, allocations: 7.938 kB / 0.4893 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.1174, allocations: 79.89 kB / 0.4894 GB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008792/0.1183, allocations: 1.385 MB / 0.4907 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.1185, allocations: 12.16 kB / 0.4908 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.1185, allocations: 8 kB / 0.4908 GB, free: 8.227 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.0001539/0.1186, allocations: 169.6 kB / 0.4909 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.1187, allocations: 31.62 kB / 0.491 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003036/0.119, allocations: 180.5 kB / 0.4911 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1191, allocations: 7.984 kB / 0.4911 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.1191, allocations: 0 / 0.4911 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.1191, allocations: 8.031 kB / 0.4911 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007717/0.1199, allocations: 0.5454 MB / 0.4917 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1199, allocations: 4 kB / 0.4917 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.1201, allocations: 39.92 kB / 0.4917 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1201, allocations: 4 kB / 0.4917 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.1201, allocations: 4 kB / 0.4917 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1201, allocations: 4 kB / 0.4917 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1202, allocations: 3.938 kB / 0.4917 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.1206, allocations: 0.4905 MB / 0.4922 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.1207, allocations: 104.8 kB / 0.4923 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.1207, allocations: 8 kB / 0.4923 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.121, allocations: 4 kB / 0.4923 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.87e-05/0.121, allocations: 19.92 kB / 0.4923 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.121, allocations: 4 kB / 0.4923 GB, free: 6.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.1212, allocations: 223.2 kB / 0.4926 GB, free: 6.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1212, allocations: 0 / 0.4926 GB, free: 6.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.1216, allocations: 60 kB / 0.4926 GB, free: 6.223 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.0007166/0.1224, allocations: 1.032 MB / 0.4936 GB, free: 5.156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003424/0.1227, allocations: 152.6 kB / 0.4938 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1227, allocations: 3.938 kB / 0.4938 GB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.1228, allocations: 72.03 kB / 0.4938 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007299/0.1236, allocations: 89.17 kB / 0.4939 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.1276, allocations: 3.25 MB / 0.4971 GB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.128, allocations: 0.8067 MB / 0.4979 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.1282, allocations: 54.94 kB / 0.4979 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.1284, allocations: 119.4 kB / 0.498 GB, free: 428 kB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1284, allocations: 0 / 0.498 GB, free: 428 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.1557, allocations: 6.811 MB / 0.5047 GB, free: 9.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.049, allocations: 0 / 0.5047 GB, free: 9.551 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)