Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008789/0.0008787, allocations: 174.2 kB / 16.07 MB, free: 5.695 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.255/1.255, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0006826/0.0006827, allocations: 84.86 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1726/0.1726, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003356, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2261, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004045/0.2302, allocations: 4.137 MB / 483.8 MB, free: 6.559 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2319, allocations: 1.083 MB / 484.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002502/0.2322, allocations: 21.56 kB / 484.9 MB, free: 5.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.2324, allocations: 55.83 kB / 484.9 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005453/0.2329, allocations: 209 kB / 485.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.2332, allocations: 116.8 kB / 485.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.2338, allocations: 465.6 kB / 485.7 MB, free: 5.395 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.234, allocations: 109.3 kB / 485.8 MB, free: 5.359 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.2342, allocations: 149.1 kB / 485.9 MB, free: 5.297 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.2346, allocations: 197.9 kB / 486.1 MB, free: 5.234 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.2346, allocations: 11 kB / 486.2 MB, free: 5.234 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.2347, allocations: 10.66 kB / 486.2 MB, free: 5.234 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.2348, allocations: 98.52 kB / 486.3 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.235, allocations: 156.6 kB / 486.4 MB, free: 5.102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.2352, allocations: 218.6 kB / 486.6 MB, free: 5.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2353, allocations: 5.188 kB / 486.6 MB, free: 5.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2353, allocations: 0 / 486.6 MB, free: 5.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2353, allocations: 0 / 486.6 MB, free: 5.047 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000866/0.2361, allocations: 0.5656 MB / 487.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2362, allocations: 9.875 kB / 487.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.564e-05/0.2363, allocations: 36.05 kB / 487.2 MB, free: 4.559 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.2366, allocations: 328.2 kB / 487.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.2367, allocations: 18.69 kB / 487.6 MB, free: 4.281 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.2367, allocations: 27.03 kB / 487.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004419/0.2371, allocations: 321.2 kB / 487.9 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2372, allocations: 1.375 kB / 487.9 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.2372, allocations: 5.375 kB / 487.9 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2372, allocations: 6.875 kB / 487.9 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.2376, allocations: 216 kB / 488.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.2389, allocations: 1.342 MB / 489.5 MB, free: 2.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.2392, allocations: 151.4 kB / 489.6 MB, free: 2.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.79e-05/0.2393, allocations: 58.75 kB / 489.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.2393, allocations: 1.75 kB / 489.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2394, allocations: 40.69 kB / 489.7 MB, free: 2.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 2.705e-06/0.2394, allocations: 4 kB / 489.7 MB, free: 2.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007282/0.2401, allocations: 363.5 kB / 490.1 MB, free: 2.574 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.2401, allocations: 80.34 kB / 490.2 MB, free: 2.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.2404, allocations: 255.8 kB / 490.4 MB, free: 2.324 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.2404, allocations: 29.7 kB / 490.4 MB, free: 2.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.2405, allocations: 196.4 kB / 490.6 MB, free: 2.125 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.085e-05/0.2405, allocations: 50.12 kB / 490.7 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.759e-06/0.2405, allocations: 4 kB / 490.7 MB, free: 2.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.168e-05/0.2406, allocations: 341.1 kB / 491 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.732e-05/0.2407, allocations: 53.25 kB / 491.1 MB, free: 1.738 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.2408, allocations: 158.6 kB / 491.2 MB, free: 1.586 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.241, allocations: 225.9 kB / 491.5 MB, free: 1.402 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.241, allocations: 5.344 kB / 491.5 MB, free: 1.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003369/0.2414, allocations: 246.8 kB / 491.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.2414, allocations: 6.812 kB / 491.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2414, allocations: 3.75 kB / 491.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.2414, allocations: 4.688 kB / 491.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.2416, allocations: 52.44 kB / 491.8 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.2417, allocations: 14.58 kB / 491.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2418, allocations: 7.625 kB / 491.8 MB, free: 1.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.2418, allocations: 15.38 kB / 491.8 MB, free: 1.262 MB / 314.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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.242, allocations: 164.6 kB / 492 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.242, allocations: 23.69 kB / 492 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.2423, allocations: 195.2 kB / 492.2 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2423, allocations: 5.969 kB / 492.2 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2423, allocations: 1.062 kB / 492.2 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2424, allocations: 1.703 kB / 492.2 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006214/0.243, allocations: 0.5548 MB / 492.7 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.243, allocations: 1.281 kB / 492.7 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.2431, allocations: 30.94 kB / 492.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2432, allocations: 1.156 kB / 492.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2432, allocations: 6.828 kB / 492.8 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.2432, allocations: 5.125 kB / 492.8 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2432, allocations: 9.609 kB / 492.8 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.2435, allocations: 290.9 kB / 493.1 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.2435, allocations: 96.42 kB / 493.2 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.2435, allocations: 2.25 kB / 493.2 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.2437, allocations: 11.06 kB / 493.2 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.2437, allocations: 12.5 kB / 493.2 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.2437, allocations: 4.75 kB / 493.2 MB, free: 268 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001498/0.2439, allocations: 185.9 kB / 493.4 MB, free: 156 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2439, allocations: 0 / 493.4 MB, free: 156 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003191/0.2442, allocations: 48.62 kB / 493.4 MB, free: 152 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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 8.308e-05/0.2443, allocations: 102.1 kB / 493.5 MB, free: 56 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002614/0.2446, allocations: 163.7 kB / 493.7 MB, free: 0 / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2446, allocations: 0 / 493.7 MB, free: 0 / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.2447, allocations: 71.53 kB / 493.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.2452, allocations: 55.03 kB / 493.8 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000939/0.2462, allocations: 0.6829 MB / 494.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.2465, allocations: 0.7791 MB / 495.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.303e-05/0.2466, allocations: 32.19 kB / 495.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2466, allocations: 0.9688 kB / 495.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of Templates: time 0.00607/0.2527, allocations: 3.135 MB / 498.4 MB, free: 14.2 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)