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.001156/0.001156, allocations: 111.2 kB / 17.74 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.001124/0.001124, allocations: 188.1 kB / 18.67 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.192/1.192, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1667/0.1667, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001394/0.001394, allocations: 68.38 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08557, allocations: 55.24 MB / 487.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005524/0.09114, allocations: 4.047 MB / 491.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.09272, allocations: 0.9358 MB / 492.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.09296, allocations: 15.88 kB / 492.8 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002167/0.09321, allocations: 51.56 kB / 492.8 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005601/0.09378, allocations: 179 kB / 493 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.09403, allocations: 91.81 kB / 493.1 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004771/0.09452, allocations: 402.5 kB / 493.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.09476, allocations: 130.2 kB / 493.6 MB, free: 2.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003491/0.09512, allocations: 179.2 kB / 493.8 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.09551, allocations: 207.2 kB / 494 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.342e-05/0.09558, allocations: 20 kB / 494 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.651e-05/0.09566, allocations: 24 kB / 494 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.09579, allocations: 103.7 kB / 494.1 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.09597, allocations: 151.2 kB / 494.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.09632, allocations: 322.8 kB / 494.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09633, allocations: 0 / 494.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09634, allocations: 0 / 494.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.09635, allocations: 0 / 494.6 MB, free: 1.508 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.001158/0.09751, allocations: 0.6167 MB / 495.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.09756, allocations: 15.89 kB / 495.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.841e-05/0.09767, allocations: 40.45 kB / 495.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006112/0.09829, allocations: 343 kB / 495.6 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.09833, allocations: 16.94 kB / 495.6 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.362e-05/0.09838, allocations: 28.12 kB / 495.6 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.09889, allocations: 312.5 kB / 496 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.09892, allocations: 4 kB / 496 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.09895, allocations: 8 kB / 496 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.09897, allocations: 4 kB / 496 MB, free: 20 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.09933, allocations: 221.5 kB / 496.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.101, allocations: 1.348 MB / 497.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.1014, allocations: 149.1 kB / 497.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.1015, allocations: 57.75 kB / 497.7 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1015, allocations: 4 kB / 497.7 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.1015, allocations: 38.56 kB / 497.8 MB, free: 14.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.1015, allocations: 0 / 497.8 MB, free: 14.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007551/0.1023, allocations: 359.8 kB / 498.1 MB, free: 13.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.1024, allocations: 85.11 kB / 498.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.1026, allocations: 255 kB / 498.5 MB, free: 13.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1026, allocations: 25.7 kB / 498.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1028, allocations: 199.6 kB / 498.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.1028, allocations: 51.34 kB / 498.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.855e-05/0.1029, allocations: 57.75 kB / 498.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.103, allocations: 334.8 kB / 499.1 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.365e-05/0.1031, allocations: 59.91 kB / 499.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.1033, allocations: 148.8 kB / 499.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.1035, allocations: 232.6 kB / 499.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1035, allocations: 0 / 499.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003363/0.1039, allocations: 248.9 kB / 499.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1039, allocations: 8 kB / 499.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1039, allocations: 4.438 kB / 499.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.104, allocations: 11.94 kB / 499.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.1041, allocations: 47.91 kB / 499.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.1042, allocations: 15.92 kB / 499.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.1043, allocations: 15.91 kB / 499.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.1043, allocations: 8 kB / 499.9 MB, free: 11.8 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.0001348/0.1045, allocations: 165.7 kB / 0.4883 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.1045, allocations: 23.72 kB / 0.4884 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/0.1049, allocations: 199.3 kB / 0.4885 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1049, allocations: 4 kB / 0.4886 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1049, allocations: 0 / 0.4886 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1049, allocations: 0 / 0.4886 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.1055, allocations: 0.5499 MB / 0.4891 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/0.1055, allocations: 0 / 0.4891 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.1057, allocations: 31.92 kB / 0.4891 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1057, allocations: 0 / 0.4891 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1057, allocations: 11.98 kB / 0.4891 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1057, allocations: 7.969 kB / 0.4891 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1057, allocations: 0 / 0.4891 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.106, allocations: 296.7 kB / 0.4894 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.1061, allocations: 96.73 kB / 0.4895 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.1061, allocations: 11.94 kB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.1063, allocations: 3.938 kB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.802e-05/0.1063, allocations: 19.98 kB / 0.4895 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.1063, allocations: 4 kB / 0.4896 GB, free: 10.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.1065, allocations: 182 kB / 0.4897 GB, free: 10.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1065, allocations: 0 / 0.4897 GB, free: 10.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000313/0.1068, allocations: 48 kB / 0.4898 GB, free: 10.05 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.0001096/0.1069, allocations: 103.2 kB / 0.4899 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002581/0.1072, allocations: 156.9 kB / 0.49 GB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1072, allocations: 0 / 0.49 GB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.1073, allocations: 75.84 kB / 0.4901 GB, free: 9.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.1078, allocations: 73.39 kB / 0.4902 GB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000859/0.1086, allocations: 0.5489 MB / 0.4907 GB, free: 9.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.109, allocations: 0.7792 MB / 0.4915 GB, free: 8.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.879e-05/0.109, allocations: 27.44 kB / 0.4915 GB, free: 8.227 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.109, allocations: 0 / 0.4915 GB, free: 8.227 MB / 382.1 MB Notification: Performance of Templates: time 0.005466/0.1145, allocations: 3.193 MB / 0.4946 GB, free: 5.023 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)