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.00134/0.00134, allocations: 109.3 kB / 17.69 MB, free: 5.496 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.001326/0.001327, allocations: 188.1 kB / 18.62 MB, free: 4.578 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.228/1.228, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1654/0.1654, allocations: 37.98 MB / 309.8 MB, free: 5.973 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.001537/0.001538, allocations: 75.88 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.09221, allocations: 55.24 MB / 487.7 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005336/0.09759, allocations: 4.039 MB / 491.8 MB, free: 4.297 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.09927, allocations: 0.9358 MB / 492.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.09955, allocations: 15.88 kB / 492.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.09981, allocations: 47.56 kB / 492.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000648/0.1005, allocations: 179 kB / 492.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.1008, allocations: 95.81 kB / 493 MB, free: 3.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005341/0.1013, allocations: 410.5 kB / 493.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.1016, allocations: 118.2 kB / 493.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.1019, allocations: 171.3 kB / 493.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003783/0.1023, allocations: 215.2 kB / 493.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.485e-05/0.1024, allocations: 20 kB / 493.9 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.1025, allocations: 20 kB / 494 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1026, allocations: 107.7 kB / 494.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.1028, allocations: 151.2 kB / 494.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1031, allocations: 318.8 kB / 494.5 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1031, allocations: 0 / 494.5 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1031, allocations: 3.938 kB / 494.5 MB, free: 1.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1031, allocations: 0 / 494.5 MB, free: 1.52 MB / 366.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.001094/0.1042, allocations: 0.6167 MB / 495.1 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1043, allocations: 15.89 kB / 495.2 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.807e-05/0.1044, allocations: 36.47 kB / 495.2 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.1049, allocations: 343 kB / 495.5 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.1049, allocations: 16.94 kB / 495.5 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.105, allocations: 24.12 kB / 495.6 MB, free: 400 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.1054, allocations: 316.5 kB / 495.9 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1054, allocations: 4 kB / 495.9 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.1054, allocations: 8 kB / 495.9 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1055, allocations: 8 kB / 495.9 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003631/0.1058, allocations: 213.6 kB / 496.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.1074, allocations: 1.352 MB / 497.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.1078, allocations: 149.2 kB / 497.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.371e-05/0.1079, allocations: 61.69 kB / 497.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.1079, allocations: 0 / 497.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1079, allocations: 34.56 kB / 497.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.1079, allocations: 0 / 497.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007887/0.1087, allocations: 371.7 kB / 498.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.1088, allocations: 81.23 kB / 498.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.1091, allocations: 255 kB / 498.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.1091, allocations: 33.69 kB / 498.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1092, allocations: 203.5 kB / 498.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.1093, allocations: 47.36 kB / 498.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.531e-05/0.1094, allocations: 37.7 kB / 498.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1095, allocations: 342.8 kB / 499 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-05/0.1096, allocations: 63.83 kB / 499.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.1098, allocations: 148.8 kB / 499.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.11, allocations: 232.6 kB / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.11, allocations: 8 kB / 499.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003645/0.1104, allocations: 245 kB / 499.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1104, allocations: 8 kB / 499.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1105, allocations: 0 / 499.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.1105, allocations: 8 kB / 499.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.1107, allocations: 51.91 kB / 499.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.1107, allocations: 7.938 kB / 499.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.1108, allocations: 16.33 kB / 499.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.1109, allocations: 12 kB / 499.8 MB, free: 11.82 MB / 382.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.0001479/0.111, allocations: 169.6 kB / 500 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.1111, allocations: 19.72 kB / 0.4883 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/0.1114, allocations: 191.3 kB / 0.4885 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1114, allocations: 4 kB / 0.4885 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1114, allocations: 0 / 0.4885 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1114, allocations: 3.984 kB / 0.4885 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006456/0.1121, allocations: 0.5577 MB / 0.489 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1121, allocations: 0 / 0.489 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.1122, allocations: 27.92 kB / 0.4891 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1123, allocations: 4 kB / 0.4891 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1123, allocations: 4 kB / 0.4891 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.1123, allocations: 7.938 kB / 0.4891 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1123, allocations: 3.938 kB / 0.4891 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.1126, allocations: 292.8 kB / 0.4894 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.1127, allocations: 104.7 kB / 0.4895 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1127, allocations: 4 kB / 0.4895 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.1128, allocations: 7.938 kB / 0.4895 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.217e-05/0.1129, allocations: 15.92 kB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.1129, allocations: 4 kB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.1131, allocations: 182 kB / 0.4897 GB, free: 10.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1131, allocations: 0 / 0.4897 GB, free: 10.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003114/0.1134, allocations: 56 kB / 0.4897 GB, free: 10.06 MB / 382.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 0.0001066/0.1135, allocations: 91.25 kB / 0.4898 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002971/0.1138, allocations: 159.7 kB / 0.4899 GB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1138, allocations: 0.875 kB / 0.4899 GB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.1139, allocations: 79.84 kB / 0.49 GB, free: 9.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.1144, allocations: 66.52 kB / 0.4901 GB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008553/0.1153, allocations: 0.556 MB / 0.4906 GB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1157, allocations: 0.7792 MB / 0.4914 GB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.33e-05/0.1157, allocations: 31.42 kB / 0.4914 GB, free: 8.238 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1157, allocations: 3.938 kB / 0.4914 GB, free: 8.234 MB / 382.1 MB Notification: Performance of Templates: time 0.005516/0.1213, allocations: 3.166 MB / 0.4945 GB, free: 5.059 MB / 382.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)