Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001615/0.001614, allocations: 185.9 kB / 15.77 MB, free: 5.988 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.056/2.056, 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.001175/0.001175, allocations: 90.8 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2662/0.2662, allocations: 38.04 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004634, allocations: 12 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 56.34 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00761/0.116, allocations: 4.396 MB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003792/0.1199, allocations: 1.591 MB / 485.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004853/0.1204, allocations: 27.81 kB / 485.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005045/0.1209, allocations: 107.4 kB / 485.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.1221, allocations: 283 kB / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.1227, allocations: 127.8 kB / 485.7 MB, free: 11.39 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008855/0.1236, allocations: 323.3 kB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.1239, allocations: 109.8 kB / 486.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/0.1243, allocations: 155.4 kB / 486.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003533/0.1247, allocations: 151.3 kB / 486.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.313e-05/0.1248, allocations: 12 kB / 486.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.949e-05/0.1249, allocations: 16 kB / 486.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.125, allocations: 83.72 kB / 486.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1252, allocations: 93.52 kB / 486.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004378/0.1256, allocations: 279.3 kB / 486.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1256, allocations: 0 / 486.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.556e-06/0.1256, allocations: 0 / 486.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1257, allocations: 7.938 kB / 486.9 MB, free: 10.18 MB / 330.7 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.001425/0.1271, allocations: 0.5891 MB / 487.4 MB, free: 9.547 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.1272, allocations: 12.03 kB / 487.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1273, allocations: 66.53 kB / 487.5 MB, free: 9.461 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1274, allocations: 43.39 kB / 487.6 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009359/0.1283, allocations: 370.6 kB / 487.9 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.1284, allocations: 24.56 kB / 488 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.792e-05/0.1285, allocations: 27.91 kB / 488 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007561/0.1293, allocations: 326.2 kB / 488.3 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.1293, allocations: 11.97 kB / 488.3 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.1294, allocations: 11.94 kB / 488.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.1294, allocations: 11.95 kB / 488.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005687/0.13, allocations: 209.5 kB / 488.5 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.1323, allocations: 1.482 MB / 490 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/0.133, allocations: 210.2 kB / 490.2 MB, free: 6.547 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.133, allocations: 4.125 kB / 490.2 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.1331, allocations: 34.56 kB / 490.3 MB, free: 6.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 3.386e-06/0.1331, allocations: 0 / 490.3 MB, free: 6.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.001587/0.1347, allocations: 0.6784 MB / 490.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1348, allocations: 136.5 kB / 491.1 MB, free: 5.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.1353, allocations: 313.6 kB / 491.4 MB, free: 5.289 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.1353, allocations: 29.7 kB / 491.4 MB, free: 5.254 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.1356, allocations: 262.2 kB / 491.7 MB, free: 4.992 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/0.1357, allocations: 67.08 kB / 491.7 MB, free: 4.926 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.1357, allocations: 4 kB / 491.7 MB, free: 4.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1358, allocations: 330.9 kB / 492.1 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.136, allocations: 39.98 kB / 492.1 MB, free: 4.551 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.1362, allocations: 152.8 kB / 492.2 MB, free: 4.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.1365, allocations: 71.98 kB / 492.3 MB, free: 4.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1365, allocations: 0 / 492.3 MB, free: 4.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000583/0.1371, allocations: 233.2 kB / 492.5 MB, free: 4.051 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1371, allocations: 4.438 kB / 492.6 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1371, allocations: 8 kB / 492.6 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.1372, allocations: 11.95 kB / 492.6 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/0.1379, allocations: 79.89 kB / 492.6 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.1391, allocations: 1.29 MB / 493.9 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.1394, allocations: 11.91 kB / 493.9 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.1395, allocations: 12 kB / 494 MB, free: 2.5 MB / 330.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002733/0.1398, allocations: 161.7 kB / 494.1 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1399, allocations: 35.62 kB / 494.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000499/0.1404, allocations: 188.6 kB / 494.3 MB, free: 2.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1404, allocations: 4 kB / 494.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1404, allocations: 0 / 494.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1405, allocations: 7.938 kB / 494.3 MB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1416, allocations: 0.5374 MB / 494.9 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1416, allocations: 0 / 494.9 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004566/0.1421, allocations: 43.97 kB / 494.9 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.836e-06/0.1421, allocations: 4 kB / 494.9 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.1422, allocations: 4 kB / 494.9 MB, free: 1.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.306e-05/0.1422, allocations: 7.984 kB / 494.9 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1422, allocations: 0 / 494.9 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/0.143, allocations: 0.5268 MB / 495.5 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1431, allocations: 112.6 kB / 495.6 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.1432, allocations: 8 kB / 495.6 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.1435, allocations: 4 kB / 495.6 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.1436, allocations: 15.98 kB / 495.6 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.1436, allocations: 4 kB / 495.6 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003329/0.1439, allocations: 223.2 kB / 495.8 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1439, allocations: 0 / 495.8 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006221/0.1446, allocations: 63.95 kB / 495.9 MB, free: 444 kB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001214/0.1458, allocations: 1.263 MB / 497.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.1465, allocations: 160.6 kB / 497.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.1465, allocations: 4.125 kB / 497.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.1467, allocations: 67.84 kB / 497.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009197/0.1477, allocations: 77.38 kB / 497.5 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.1535, allocations: 4.217 MB / 0.4899 GB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005253/0.1541, allocations: 0.807 MB / 0.4907 GB, free: 9.652 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.1544, allocations: 119.4 kB / 0.4908 GB, free: 9.535 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/0.1544, allocations: 3.938 kB / 0.4908 GB, free: 9.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.561/2.715, allocations: 6.221 MB / 0.4969 GB, free: 3.312 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)