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.0008429/0.0008427, allocations: 91.77 kB / 16.65 MB, free: 6.535 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.0009939/0.000994, allocations: 177.6 kB / 17.56 MB, free: 6.18 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.49/1.49, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.175/0.175, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0005593/0.0005591, allocations: 16 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2542, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.003726/0.258, allocations: 4.315 MB / 437.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2594, allocations: 1.115 MB / 438.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.2596, allocations: 27.81 kB / 439 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.2599, allocations: 43.62 kB / 439 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004384/0.2603, allocations: 163.2 kB / 439.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.2605, allocations: 75.91 kB / 439.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.2609, allocations: 0.557 MB / 439.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.2611, allocations: 101.7 kB / 439.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.2613, allocations: 147.2 kB / 440 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.2616, allocations: 215.1 kB / 440.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.2617, allocations: 12 kB / 440.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.681e-05/0.2617, allocations: 12 kB / 440.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.041e-05/0.2618, allocations: 99.69 kB / 440.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.2619, allocations: 156.9 kB / 440.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.2622, allocations: 294.8 kB / 440.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2622, allocations: 0 / 440.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2622, allocations: 0 / 440.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.2622, allocations: 4 kB / 440.8 MB, free: 11.33 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.0008894/0.2631, allocations: 0.5662 MB / 441.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2631, allocations: 12.03 kB / 441.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.984e-05/0.2632, allocations: 32.56 kB / 441.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.2635, allocations: 319 kB / 441.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.2636, allocations: 20.94 kB / 441.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.2636, allocations: 24.12 kB / 441.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003696/0.264, allocations: 320.5 kB / 442.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.264, allocations: 3.938 kB / 442.1 MB, free: 9.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.264, allocations: 15.94 kB / 442.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.264, allocations: 4 kB / 442.1 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.2643, allocations: 213.5 kB / 442.3 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.2655, allocations: 1.356 MB / 443.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.2658, allocations: 145.2 kB / 443.8 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.692e-05/0.2659, allocations: 57.75 kB / 443.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.2659, allocations: 4 kB / 443.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.2659, allocations: 34.56 kB / 443.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.2659, allocations: 0 / 443.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006746/0.2666, allocations: 371.2 kB / 444.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.2666, allocations: 89.22 kB / 444.4 MB, free: 7.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.2668, allocations: 255 kB / 444.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2669, allocations: 29.7 kB / 444.6 MB, free: 7.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.267, allocations: 199.6 kB / 444.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.267, allocations: 51.28 kB / 444.9 MB, free: 6.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.267, allocations: 25.72 kB / 444.9 MB, free: 6.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.177e-05/0.2671, allocations: 334.8 kB / 445.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.923e-05/0.2672, allocations: 55.95 kB / 445.3 MB, free: 6.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.2673, allocations: 152.8 kB / 445.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.2675, allocations: 240.5 kB / 445.7 MB, free: 6.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2675, allocations: 0 / 445.7 MB, free: 6.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002695/0.2678, allocations: 245 kB / 445.9 MB, free: 5.812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2678, allocations: 8 kB / 445.9 MB, free: 5.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2678, allocations: 0 / 445.9 MB, free: 5.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2679, allocations: 8 kB / 445.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.268, allocations: 47.91 kB / 446 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.268, allocations: 7.984 kB / 446 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2682, allocations: 8.438 kB / 446 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2682, allocations: 15.98 kB / 446 MB, free: 5.719 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 0.0001086/0.2683, allocations: 165.7 kB / 446.2 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.2684, allocations: 19.72 kB / 446.2 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.2686, allocations: 195.2 kB / 446.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2686, allocations: 4 kB / 446.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2686, allocations: 0 / 446.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2687, allocations: 3.984 kB / 446.4 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.2691, allocations: 0.5655 MB / 446.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2692, allocations: 7.922 kB / 447 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.2693, allocations: 27.98 kB / 447 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2693, allocations: 4 kB / 447 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.2693, allocations: 0 / 447 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2693, allocations: 11.92 kB / 447 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2693, allocations: 4 kB / 447 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.2695, allocations: 288.8 kB / 447.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.2696, allocations: 104.8 kB / 447.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.2696, allocations: 0 / 447.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.2697, allocations: 11.94 kB / 447.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.95e-05/0.2698, allocations: 7.984 kB / 447.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.2698, allocations: 4 kB / 447.4 MB, free: 4.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.2699, allocations: 182 kB / 447.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2699, allocations: 8 kB / 447.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.2702, allocations: 48 kB / 447.6 MB, free: 3.961 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 9.504e-05/0.2703, allocations: 103.1 kB / 447.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.2705, allocations: 156.7 kB / 447.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2705, allocations: 3.938 kB / 447.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.089e-05/0.2706, allocations: 75.91 kB / 448 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.2711, allocations: 57.3 kB / 448 MB, free: 3.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006856/0.2718, allocations: 0.656 MB / 448.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.272, allocations: 0.7794 MB / 449.5 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001349/0.2722, allocations: 46.2 kB / 449.5 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.2722, allocations: 23.42 kB / 449.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2722, allocations: 0 / 449.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of Templates: time 0.004254/0.2765, allocations: 2.106 MB / 451.6 MB, free: 15.91 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) Environment - environmentSimulation: