Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009875/0.0009873, allocations: 171.9 kB / 16.07 MB, free: 5.727 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.247/1.247, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007099/0.0007103, allocations: 91.78 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1756/0.1756, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 16 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2163, allocations: 56.32 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004147/0.2205, allocations: 4.568 MB / 484.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.2227, allocations: 1.553 MB / 485.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.223, allocations: 25.84 kB / 485.8 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.2232, allocations: 80.86 kB / 485.9 MB, free: 5.102 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006876/0.2239, allocations: 308.1 kB / 486.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006451/0.2246, allocations: 248.2 kB / 486.4 MB, free: 4.836 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007834/0.2254, allocations: 0.7836 MB / 487.2 MB, free: 4.562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006587/0.2261, allocations: 416.9 kB / 487.6 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000381/0.2265, allocations: 243.5 kB / 487.8 MB, free: 4.219 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00057/0.227, allocations: 409.1 kB / 488.2 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.055e-05/0.2271, allocations: 21.84 kB / 488.2 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004536/0.2276, allocations: 225 kB / 488.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.2278, allocations: 231.8 kB / 488.7 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000274/0.2281, allocations: 275.4 kB / 489 MB, free: 3.824 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000642/0.2288, allocations: 0.5404 MB / 489.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2288, allocations: 4.641 kB / 489.5 MB, free: 3.703 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2288, allocations: 0 / 489.5 MB, free: 3.703 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.2288, allocations: 0 / 489.5 MB, free: 3.703 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001195/0.23, allocations: 0.7791 MB / 490.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.23, allocations: 9.5 kB / 490.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005209/0.2306, allocations: 92.64 kB / 490.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005577/0.2311, allocations: 420.2 kB / 490.8 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.2312, allocations: 33.86 kB / 490.8 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.2313, allocations: 51.3 kB / 490.9 MB, free: 2.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.2324, allocations: 0.8551 MB / 491.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.2325, allocations: 1.469 kB / 491.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.406e-05/0.2325, allocations: 20.89 kB / 491.8 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.2327, allocations: 67.02 kB / 491.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.2338, allocations: 0.7957 MB / 492.6 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/0.2371, allocations: 2.73 MB / 495.3 MB, free: 256 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008222/0.238, allocations: 0.5878 MB / 495.9 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/0.2386, allocations: 451.4 kB / 496.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.2386, allocations: 4.141 kB / 496.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.2386, allocations: 39.02 kB / 496.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.465e-06/0.2386, allocations: 0 / 496.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.002964/0.2416, allocations: 1.885 MB / 498.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.275e-05/0.2417, allocations: 135 kB / 498.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.242, allocations: 292.5 kB / 498.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.2421, allocations: 37.06 kB / 498.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.2423, allocations: 255.7 kB / 499 MB, free: 14.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.2424, allocations: 185.8 kB / 499.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.2424, allocations: 10.81 kB / 499.2 MB, free: 14.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2426, allocations: 355.3 kB / 499.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.2431, allocations: 342.3 kB / 499.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005398/0.2436, allocations: 491 kB / 0.4886 GB, free: 13.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.2448, allocations: 0.9677 MB / 0.4896 GB, free: 12.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2448, allocations: 1.094 kB / 0.4896 GB, free: 12.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001427/0.2462, allocations: 0.98 MB / 0.4905 GB, free: 12.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.844e-05/0.2463, allocations: 74.7 kB / 0.4906 GB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.2463, allocations: 8.984 kB / 0.4906 GB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2465, allocations: 43.19 kB / 0.4907 GB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.2469, allocations: 83.72 kB / 0.4907 GB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.248, allocations: 1.45 MB / 0.4921 GB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.2484, allocations: 37.08 kB / 0.4922 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.2485, allocations: 28.83 kB / 0.4922 GB, free: 10.91 MB / 330.7 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[1],voltage.h_mod3[2],voltage.h_mod3[3],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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004069/0.2489, allocations: 302 kB / 0.4925 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.249, allocations: 44.66 kB / 0.4925 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.2506, allocations: 1.068 MB / 0.4936 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.2506, allocations: 13.36 kB / 0.4936 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2506, allocations: 1.375 kB / 0.4936 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.2506, allocations: 5.312 kB / 0.4936 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.2531, allocations: 1.796 MB / 0.4954 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2531, allocations: 3.938 kB / 0.4954 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.2534, allocations: 53.41 kB / 0.4954 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.2535, allocations: 39.05 kB / 0.4954 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/0.2536, allocations: 14.97 kB / 0.4955 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.2546, allocations: 1.435 MB / 0.4969 GB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/0.2546, allocations: 5.312 kB / 0.4969 GB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.2561, allocations: 1.179 MB / 0.498 GB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.2564, allocations: 172.5 kB / 0.4982 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.2565, allocations: 18.73 kB / 0.4982 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.2567, allocations: 26.66 kB / 0.4982 GB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.2569, allocations: 40.27 kB / 0.4983 GB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.058e-05/0.2569, allocations: 21.48 kB / 0.4983 GB, free: 6.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000207/0.2571, allocations: 196.4 kB / 0.4985 GB, free: 6.574 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2571, allocations: 1.125 kB / 0.4985 GB, free: 6.574 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005993/0.2577, allocations: 150.4 kB / 0.4986 GB, free: 6.461 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002383/0.258, allocations: 139.1 kB / 0.4988 GB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.2596, allocations: 1.368 MB / 0.5001 GB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2596, allocations: 3.938 kB / 0.5001 GB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009293/0.2606, allocations: 0.9175 MB / 0.501 GB, free: 3.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.2611, allocations: 72.91 kB / 0.5011 GB, free: 3.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.2632, allocations: 1.652 MB / 0.5027 GB, free: 2.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.2637, allocations: 0.9015 MB / 0.5036 GB, free: 1.285 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.2638, allocations: 27.44 kB / 0.5036 GB, free: 1.258 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2638, allocations: 0 / 0.5036 GB, free: 1.258 MB / 330.7 MB Notification: Performance of Templates: time 0.01057/0.2744, allocations: 8.351 MB / 0.5117 GB, free: 8.914 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)