Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001925/0.001925, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.605/1.605, allocations: 205.1 MB / 224.5 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.1842/0.1842, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001464/0.001464, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2546, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004089/0.2588, allocations: 4.054 MB / 436.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009749/0.2598, allocations: 0.928 MB / 437 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.2599, allocations: 11.94 kB / 437 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.2601, allocations: 51.5 kB / 437.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003522/0.2605, allocations: 187 kB / 437.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.2606, allocations: 83.89 kB / 437.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002959/0.2609, allocations: 402.6 kB / 437.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.2611, allocations: 126.2 kB / 437.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.2613, allocations: 183.1 kB / 438 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.2616, allocations: 203.3 kB / 438.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.2616, allocations: 20 kB / 438.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.727e-05/0.2617, allocations: 20 kB / 438.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-05/0.2618, allocations: 103.7 kB / 438.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.2619, allocations: 159.1 kB / 438.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.2621, allocations: 312.7 kB / 438.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2621, allocations: 4 kB / 438.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2621, allocations: 0 / 438.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2621, allocations: 0 / 438.8 MB, free: 12.66 MB / 318.1 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.0008173/0.263, allocations: 0.6222 MB / 439.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.263, allocations: 15.89 kB / 439.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.939e-05/0.263, allocations: 32.56 kB / 439.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.2634, allocations: 343 kB / 439.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.2635, allocations: 20.88 kB / 439.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.2635, allocations: 28.12 kB / 439.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.2638, allocations: 320.5 kB / 440.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.2639, allocations: 3.938 kB / 440.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.2639, allocations: 8 kB / 440.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.2639, allocations: 8 kB / 440.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.2642, allocations: 213.5 kB / 440.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.2653, allocations: 1.344 MB / 441.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.2655, allocations: 145.2 kB / 441.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.25e-05/0.2656, allocations: 61.75 kB / 442 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.2656, allocations: 224 / 442 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.521e-05/0.2657, allocations: 42.5 kB / 442 MB, free: 9.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.2657, allocations: 0 / 442 MB, free: 9.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005975/0.2663, allocations: 363 kB / 442.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.2663, allocations: 89.06 kB / 442.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.2665, allocations: 259 kB / 442.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.2665, allocations: 25.7 kB / 442.7 MB, free: 8.469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.154e-05/0.2666, allocations: 203.6 kB / 442.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.2666, allocations: 47.3 kB / 443 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.2667, allocations: 41.7 kB / 443 MB, free: 8.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.2667, allocations: 342.8 kB / 443.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.582e-05/0.2668, allocations: 59.95 kB / 443.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.566e-05/0.2669, allocations: 144.8 kB / 443.6 MB, free: 7.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.2671, allocations: 224.7 kB / 443.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2671, allocations: 4 kB / 443.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002692/0.2674, allocations: 252.9 kB / 444 MB, free: 7.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.2674, allocations: 4 kB / 444 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.2674, allocations: 4 kB / 444 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2674, allocations: 8 kB / 444 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2676, allocations: 47.91 kB / 444.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2676, allocations: 4.438 kB / 444.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.2677, allocations: 12 kB / 444.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.2678, allocations: 11.98 kB / 444.1 MB, free: 6.965 MB / 318.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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.397e-05/0.2679, allocations: 157.7 kB / 444.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.811e-05/0.2679, allocations: 23.72 kB / 444.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.2681, allocations: 207.1 kB / 444.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.2682, allocations: 4 kB / 444.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2682, allocations: 4 kB / 444.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2682, allocations: 0 / 444.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000475/0.2687, allocations: 0.5577 MB / 445.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2687, allocations: 4 kB / 445.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.2688, allocations: 23.98 kB / 445.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2688, allocations: 7.938 kB / 445.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.2688, allocations: 4 kB / 445.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2688, allocations: 7.938 kB / 445.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2688, allocations: 0 / 445.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.2691, allocations: 296.8 kB / 445.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.2691, allocations: 96.83 kB / 445.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.2692, allocations: 4 kB / 445.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.2693, allocations: 11.92 kB / 445.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.2693, allocations: 11.98 kB / 445.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.2693, allocations: 4 kB / 445.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.2694, allocations: 186 kB / 445.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2694, allocations: 0 / 445.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.2697, allocations: 52 kB / 445.8 MB, free: 5.211 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.048e-05/0.2698, allocations: 103.1 kB / 445.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.2701, allocations: 156.4 kB / 446 MB, free: 4.945 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.2701, allocations: 0 / 446 MB, free: 4.945 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.522e-05/0.2702, allocations: 84.3 kB / 446.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.2706, allocations: 52.75 kB / 446.1 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006211/0.2712, allocations: 0.523 MB / 446.7 MB, free: 4.262 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.2714, allocations: 0.7792 MB / 447.4 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.2715, allocations: 42.27 kB / 447.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.2716, allocations: 27.42 kB / 447.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2716, allocations: 4 kB / 447.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of Templates: time 0.004259/0.2759, allocations: 2.225 MB / 449.7 MB, free: 1.176 MB / 318.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)