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.0009118/0.0009118, allocations: 178.8 kB / 16.08 MB, free: 5.719 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.207/1.207, allocations: 205.4 MB / 222.2 MB, free: 9.008 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.0007555/0.0007555, allocations: 82.42 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1679/0.1679, allocations: 38.09 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003415, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2215, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00488/0.2264, allocations: 4.578 MB / 484.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.2288, allocations: 1.63 MB / 485.8 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005082/0.2293, allocations: 27.34 kB / 485.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005148/0.2299, allocations: 113.2 kB / 486 MB, free: 5.008 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009721/0.2309, allocations: 293.2 kB / 486.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.2314, allocations: 126 kB / 486.4 MB, free: 4.777 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.2323, allocations: 0.5418 MB / 486.9 MB, free: 4.551 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.2326, allocations: 128.5 kB / 487 MB, free: 4.504 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.2329, allocations: 165.1 kB / 487.2 MB, free: 4.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.2333, allocations: 199.3 kB / 487.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.026e-05/0.2334, allocations: 14.53 kB / 487.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.614e-05/0.2335, allocations: 15.12 kB / 487.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2336, allocations: 90.19 kB / 487.5 MB, free: 4.324 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.2338, allocations: 187.2 kB / 487.7 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.2341, allocations: 273.5 kB / 488 MB, free: 4.137 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2342, allocations: 1.438 kB / 488 MB, free: 4.137 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2342, allocations: 0 / 488 MB, free: 4.137 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.2342, allocations: 0 / 488 MB, free: 4.137 MB / 314.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.001031/0.2352, allocations: 0.5999 MB / 488.6 MB, free: 3.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.2353, allocations: 10.59 kB / 488.6 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.2354, allocations: 40.8 kB / 488.6 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.236, allocations: 379.8 kB / 489 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.236, allocations: 23.16 kB / 489 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/0.2361, allocations: 30.64 kB / 489 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004913/0.2365, allocations: 338.2 kB / 489.4 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.2366, allocations: 1.125 kB / 489.4 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.2366, allocations: 11.86 kB / 489.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2366, allocations: 6.406 kB / 489.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.237, allocations: 207.5 kB / 489.6 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.2384, allocations: 1.49 MB / 491.1 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.2388, allocations: 201.4 kB / 491.3 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.2389, allocations: 73.17 kB / 491.4 MB, free: 1.566 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.239, allocations: 3.266 kB / 491.4 MB, free: 1.566 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.239, allocations: 45.77 kB / 491.4 MB, free: 1.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 3.396e-06/0.239, allocations: 0 / 491.4 MB, free: 1.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.0009694/0.24, allocations: 0.6821 MB / 492.1 MB, free: 1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.2401, allocations: 136 kB / 492.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002818/0.2403, allocations: 321.4 kB / 492.5 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.2404, allocations: 30.08 kB / 492.6 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.607e-05/0.2405, allocations: 219.4 kB / 492.8 MB, free: 452 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.2405, allocations: 64.97 kB / 492.8 MB, free: 400 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.2405, allocations: 5.25 kB / 492.8 MB, free: 396 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.2406, allocations: 340.7 kB / 493.2 MB, free: 64 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-05/0.2407, allocations: 48.72 kB / 493.2 MB, free: 48 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2409, allocations: 147 kB / 493.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.2412, allocations: 220.4 kB / 493.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2412, allocations: 1.562 kB / 493.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000371/0.2415, allocations: 251.3 kB / 493.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.2416, allocations: 14.23 kB / 493.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2416, allocations: 4.125 kB / 493.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2416, allocations: 8.062 kB / 493.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.242, allocations: 78.11 kB / 493.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008347/0.2428, allocations: 1.291 MB / 495.2 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.243, allocations: 9.438 kB / 495.2 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.2431, allocations: 14.52 kB / 495.2 MB, free: 14.21 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.0001866/0.2433, allocations: 165.6 kB / 495.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.2434, allocations: 38.75 kB / 495.4 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003327/0.2437, allocations: 184 kB / 495.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2437, allocations: 2.922 kB / 495.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.2437, allocations: 1.156 kB / 495.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2437, allocations: 2.484 kB / 495.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007964/0.2445, allocations: 0.5413 MB / 496.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.2445, allocations: 1.844 kB / 496.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.2448, allocations: 47.16 kB / 496.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.2448, allocations: 1.344 kB / 496.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.2448, allocations: 3.109 kB / 496.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.2448, allocations: 6.125 kB / 496.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2448, allocations: 1.469 kB / 496.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004525/0.2453, allocations: 498.1 kB / 496.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.319e-05/0.2454, allocations: 107.4 kB / 496.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.2454, allocations: 7.031 kB / 496.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.2456, allocations: 5.812 kB / 496.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.906e-05/0.2457, allocations: 15.8 kB / 496.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.2457, allocations: 12.88 kB / 496.9 MB, free: 13.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002297/0.2459, allocations: 220.8 kB / 497.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2459, allocations: 0 / 497.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004189/0.2464, allocations: 65.06 kB / 497.1 MB, free: 12.89 MB / 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.0001097/0.2465, allocations: 102.8 kB / 497.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004066/0.2469, allocations: 159.6 kB / 497.4 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2469, allocations: 128 / 497.4 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.2471, allocations: 74.27 kB / 497.5 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007758/0.2479, allocations: 80.86 kB / 497.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.2494, allocations: 1.051 MB / 498.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.2498, allocations: 0.7992 MB / 499.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.9e-05/0.2499, allocations: 27.5 kB / 499.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2499, allocations: 4 kB / 499.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of Templates: time 0.008576/0.2585, allocations: 4.664 MB / 0.4923 GB, free: 9.707 MB / 330.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)