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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 175.3 kB / 15.78 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008838/0.0008839, allocations: 102.2 kB / 270.3 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.1654/0.1654, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004042, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005851/0.1225, allocations: 4.566 MB / 483.6 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1252, allocations: 1.606 MB / 485.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005075/0.1258, allocations: 27.81 kB / 485.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005158/0.1263, allocations: 115.2 kB / 485.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009843/0.1273, allocations: 282.4 kB / 485.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.1278, allocations: 127.8 kB / 485.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009593/0.1288, allocations: 0.5409 MB / 486.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.1291, allocations: 113.8 kB / 486.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004151/0.1295, allocations: 167.2 kB / 486.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.13, allocations: 191.2 kB / 486.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.852e-05/0.13, allocations: 16 kB / 486.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.1303, allocations: 16 kB / 486.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.1304, allocations: 95.62 kB / 486.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.1306, allocations: 97.52 kB / 487 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003346/0.1309, allocations: 271.3 kB / 487.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1309, allocations: 0 / 487.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.1309, allocations: 0 / 487.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.131, allocations: 3.938 kB / 487.3 MB, free: 9.789 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.001182/0.1322, allocations: 0.6048 MB / 487.9 MB, free: 9.137 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1322, allocations: 8.031 kB / 487.9 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1323, allocations: 43.48 kB / 487.9 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006706/0.133, allocations: 378.5 kB / 488.3 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.133, allocations: 16.56 kB / 488.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.1331, allocations: 28 kB / 488.3 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005302/0.1336, allocations: 330.2 kB / 488.7 MB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.1337, allocations: 7.844 kB / 488.7 MB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.1337, allocations: 15.98 kB / 488.7 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1337, allocations: 8 kB / 488.7 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.1341, allocations: 213.4 kB / 488.9 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1359, allocations: 1.474 MB / 490.4 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004312/0.1364, allocations: 202.3 kB / 490.6 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1365, allocations: 75.53 kB / 490.6 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.1365, allocations: 4 kB / 490.6 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.1366, allocations: 38.5 kB / 490.7 MB, free: 6.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.705e-06/0.1366, allocations: 4 kB / 490.7 MB, free: 6.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.001217/0.1378, allocations: 0.682 MB / 491.4 MB, free: 5.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/0.1379, allocations: 132.5 kB / 491.5 MB, free: 5.188 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.1383, allocations: 313.6 kB / 491.8 MB, free: 4.875 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.1384, allocations: 33.7 kB / 491.8 MB, free: 4.836 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.1385, allocations: 220.2 kB / 492.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.537e-05/0.1386, allocations: 63.09 kB / 492.1 MB, free: 4.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.1386, allocations: 4 kB / 492.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1388, allocations: 346.7 kB / 492.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.541e-05/0.1389, allocations: 43.98 kB / 492.5 MB, free: 4.156 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.139, allocations: 148.8 kB / 492.6 MB, free: 3.965 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.1392, allocations: 71.92 kB / 492.7 MB, free: 3.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1392, allocations: 0 / 492.7 MB, free: 3.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000396/0.1396, allocations: 257.2 kB / 493 MB, free: 3.637 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1396, allocations: 8 kB / 493 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.1396, allocations: 11.94 kB / 493 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.567e-05/0.1397, allocations: 7.953 kB / 493 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.14, allocations: 79.89 kB / 493.1 MB, free: 3.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009319/0.141, allocations: 1.29 MB / 494.4 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.1412, allocations: 8 kB / 494.4 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.1412, allocations: 12 kB / 494.4 MB, free: 2.086 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.0002116/0.1414, allocations: 173.8 kB / 494.6 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.163e-05/0.1415, allocations: 35.53 kB / 494.6 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003284/0.1418, allocations: 184.5 kB / 494.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1419, allocations: 4 kB / 494.8 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1419, allocations: 0 / 494.8 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1419, allocations: 0 / 494.8 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008264/0.1427, allocations: 0.5413 MB / 495.3 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1427, allocations: 0 / 495.3 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.143, allocations: 51.88 kB / 495.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.143, allocations: 0 / 495.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.143, allocations: 4 kB / 495.4 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.143, allocations: 3.938 kB / 495.4 MB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.143, allocations: 3.984 kB / 495.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004758/0.1435, allocations: 494.4 kB / 495.9 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/0.1436, allocations: 112.7 kB / 496 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.1436, allocations: 3.953 kB / 496 MB, free: 388 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.1438, allocations: 8 kB / 496 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.861e-05/0.1439, allocations: 11.92 kB / 496 MB, free: 368 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.1439, allocations: 12 kB / 496 MB, free: 356 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002074/0.1441, allocations: 223.2 kB / 496.2 MB, free: 136 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1441, allocations: 0 / 496.2 MB, free: 136 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003841/0.1445, allocations: 60 kB / 496.3 MB, free: 76 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.0001314/0.1446, allocations: 99.78 kB / 496.4 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003915/0.145, allocations: 156.7 kB / 496.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1451, allocations: 0 / 496.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.1452, allocations: 71.84 kB / 496.6 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006918/0.1459, allocations: 89.28 kB / 496.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.1475, allocations: 1.047 MB / 497.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.1479, allocations: 0.8031 MB / 498.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.137e-05/0.148, allocations: 31.44 kB / 498.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.148, allocations: 0 / 498.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of Templates: time 0.007945/0.156, allocations: 4.675 MB / 0.4914 GB, free: 9.043 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)