Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 113 kB / 17.68 MB, free: 5.473 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.001168/0.001168, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.593/1.593, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1905/0.1905, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001488/0.001489, allocations: 75.03 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3063, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004952/0.3113, allocations: 4.512 MB / 436.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.3133, allocations: 1.446 MB / 438 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/0.3135, allocations: 15.88 kB / 438 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007894/0.3143, allocations: 302.6 kB / 438.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005148/0.3149, allocations: 282.7 kB / 438.6 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.3154, allocations: 251.4 kB / 438.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.3159, allocations: 0.6703 MB / 439.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.3162, allocations: 240.3 kB / 439.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.3165, allocations: 294.9 kB / 440 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.317, allocations: 418.8 kB / 440.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.3171, allocations: 44 kB / 440.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003027/0.3174, allocations: 219.6 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.3175, allocations: 247.4 kB / 440.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.3178, allocations: 294.6 kB / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006072/0.3184, allocations: 0.7476 MB / 441.9 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3184, allocations: 0 / 441.9 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3184, allocations: 0 / 441.9 MB, free: 9.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3184, allocations: 0 / 441.9 MB, free: 9.52 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001359/0.3198, allocations: 0.8768 MB / 442.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3199, allocations: 11.89 kB / 442.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005729/0.3204, allocations: 96.14 kB / 442.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008003/0.3212, allocations: 439.8 kB / 443.4 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.3213, allocations: 37.3 kB / 443.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.3214, allocations: 40.12 kB / 443.4 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.3225, allocations: 0.8629 MB / 444.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3225, allocations: 0 / 444.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.3225, allocations: 20 kB / 444.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.3227, allocations: 60.95 kB / 444.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008676/0.3236, allocations: 0.8001 MB / 445.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00278/0.3263, allocations: 2.714 MB / 447.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006521/0.327, allocations: 0.5837 MB / 448.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.3274, allocations: 458.7 kB / 448.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.2e-05/0.3274, allocations: 4 kB / 448.9 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.3275, allocations: 38.48 kB / 449 MB, free: 2.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.653e-06/0.3275, allocations: 0 / 449 MB, free: 2.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002227/0.3297, allocations: 1.887 MB / 450.9 MB, free: 268 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.3298, allocations: 134.8 kB / 451 MB, free: 108 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.3301, allocations: 296.4 kB / 451.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.3301, allocations: 29.7 kB / 451.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.3303, allocations: 260.4 kB / 451.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.3305, allocations: 193.3 kB / 451.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.3308, allocations: 102 kB / 451.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.331, allocations: 358.7 kB / 452.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.3315, allocations: 340.9 kB / 452.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005388/0.332, allocations: 485.8 kB / 453 MB, free: 13.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3332, allocations: 0.9799 MB / 454 MB, free: 12.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3332, allocations: 0 / 454 MB, free: 12.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001434/0.3346, allocations: 0.9805 MB / 455 MB, free: 11.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.465e-05/0.3347, allocations: 78.17 kB / 455 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3347, allocations: 11.98 kB / 455 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002164/0.335, allocations: 40.83 kB / 455.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.3353, allocations: 91.81 kB / 455.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.3369, allocations: 1.543 MB / 456.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/0.3373, allocations: 31.97 kB / 456.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-05/0.3373, allocations: 31.98 kB / 456.8 MB, free: 9.973 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005115/0.3379, allocations: 299.2 kB / 457.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.338, allocations: 47.5 kB / 457.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.3399, allocations: 1.084 MB / 458.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/0.3399, allocations: 15.98 kB / 458.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3399, allocations: 0 / 458.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.3399, allocations: 0 / 458.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.3427, allocations: 1.792 MB / 460 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3427, allocations: 0 / 460 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3429, allocations: 55.91 kB / 460.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/0.3431, allocations: 36.83 kB / 460.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.3431, allocations: 16 kB / 460.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/0.3446, allocations: 1.555 MB / 461.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.3446, allocations: 3.984 kB / 461.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.3463, allocations: 1.183 MB / 462.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/0.3465, allocations: 168.6 kB / 463 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.422e-05/0.3466, allocations: 15.98 kB / 463 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.3469, allocations: 23.97 kB / 463.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.347, allocations: 47.83 kB / 463.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.3471, allocations: 27.98 kB / 463.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.3474, allocations: 199.1 kB / 463.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3474, allocations: 0 / 463.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007804/0.3482, allocations: 140 kB / 463.5 MB, free: 2.988 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004297/0.3486, allocations: 151 kB / 463.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.3511, allocations: 1.366 MB / 465 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3511, allocations: 3.938 kB / 465 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.3526, allocations: 0.9329 MB / 465.9 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.3533, allocations: 73.14 kB / 466 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.356, allocations: 1.374 MB / 467.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/0.3567, allocations: 0.8976 MB / 468.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.357, allocations: 107.2 kB / 468.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.244e-05/0.3571, allocations: 31.44 kB / 468.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3571, allocations: 0 / 468.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of Templates: time 0.01225/0.3694, allocations: 6.011 MB / 474.4 MB, free: 7.941 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)