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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.00124/0.001241, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1732/0.1732, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 67.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3219, allocations: 58.05 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004796/0.3267, allocations: 4.037 MB / 0.5076 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.3279, allocations: 0.9018 MB / 0.5084 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.3281, allocations: 15 kB / 0.5085 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.3283, allocations: 46.52 kB / 0.5085 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.3287, allocations: 184.7 kB / 0.5087 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.3289, allocations: 92.52 kB / 0.5088 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.3294, allocations: 401.5 kB / 0.5091 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.3296, allocations: 121.1 kB / 0.5093 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.3298, allocations: 188.7 kB / 0.5094 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.3301, allocations: 196.2 kB / 0.5096 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.652e-05/0.3302, allocations: 20.88 kB / 0.5096 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.56e-05/0.3303, allocations: 20.94 kB / 0.5097 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.3304, allocations: 105.9 kB / 0.5098 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.3305, allocations: 148.4 kB / 0.5099 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.3309, allocations: 320.8 kB / 0.5102 GB, free: 3.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3309, allocations: 5.281 kB / 0.5102 GB, free: 3.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3309, allocations: 0 / 0.5102 GB, free: 3.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3309, allocations: 0.6562 kB / 0.5102 GB, free: 3.246 MB / 382.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.0009101/0.3318, allocations: 0.6249 MB / 0.5108 GB, free: 2.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3319, allocations: 14.39 kB / 0.5108 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.3319, allocations: 63.3 kB / 0.5109 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.332, allocations: 36.36 kB / 0.5109 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.3324, allocations: 347.5 kB / 0.5113 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3324, allocations: 18.16 kB / 0.5113 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.3325, allocations: 26.47 kB / 0.5113 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.3329, allocations: 318.5 kB / 0.5116 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3329, allocations: 5.031 kB / 0.5116 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.333, allocations: 6.25 kB / 0.5116 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.333, allocations: 6.859 kB / 0.5116 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003337/0.3333, allocations: 218.1 kB / 0.5118 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.3345, allocations: 1.341 MB / 0.5132 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.3349, allocations: 146.5 kB / 0.5133 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.335, allocations: 59.39 kB / 0.5133 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.335, allocations: 6.141 kB / 0.5134 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.335, allocations: 44.39 kB / 0.5134 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.335, allocations: 0 / 0.5134 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006807/0.3357, allocations: 369.6 kB / 0.5137 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.3357, allocations: 86.95 kB / 0.5138 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.336, allocations: 258 kB / 0.5141 GB, free: 424 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.336, allocations: 27.17 kB / 0.5141 GB, free: 392 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.3361, allocations: 207.5 kB / 0.5143 GB, free: 212 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.3361, allocations: 46.19 kB / 0.5143 GB, free: 176 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.203e-05/0.3362, allocations: 50.25 kB / 0.5144 GB, free: 140 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3363, allocations: 340.6 kB / 0.5147 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.3364, allocations: 54.27 kB / 0.5148 GB, free: 15.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3366, allocations: 150.8 kB / 0.5149 GB, free: 15.65 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.3369, allocations: 240.7 kB / 0.5151 GB, free: 15.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3369, allocations: 1.219 kB / 0.5151 GB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003645/0.3373, allocations: 243.2 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3373, allocations: 6.312 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.3373, allocations: 8.719 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3373, allocations: 5.625 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3375, allocations: 51.22 kB / 0.5154 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.3375, allocations: 4.719 kB / 0.5154 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.3377, allocations: 10.06 kB / 0.5155 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.3377, allocations: 14.34 kB / 0.5155 GB, free: 15.32 MB / 398.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.0001478/0.3378, allocations: 156.4 kB / 0.5156 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/0.3379, allocations: 27.61 kB / 0.5156 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.3382, allocations: 204.4 kB / 0.5158 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3383, allocations: 3.656 kB / 0.5158 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3383, allocations: 0 / 0.5158 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3383, allocations: 1.641 kB / 0.5158 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007144/0.339, allocations: 0.5525 MB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.339, allocations: 1.406 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.3392, allocations: 30.28 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3392, allocations: 2.656 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.3392, allocations: 6.25 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.247e-06/0.3392, allocations: 9.375 kB / 0.5164 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3392, allocations: 1.688 kB / 0.5164 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.3395, allocations: 294.2 kB / 0.5167 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.281e-05/0.3396, allocations: 96.11 kB / 0.5168 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.3397, allocations: 6.344 kB / 0.5168 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.3398, allocations: 10.3 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.3398, allocations: 12.89 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3398, allocations: 5.531 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.34, allocations: 183 kB / 0.517 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.34, allocations: 0 / 0.517 GB, free: 14.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.3403, allocations: 49.58 kB / 0.5171 GB, free: 14.21 MB / 398.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.0006681/0.341, allocations: 0.8308 MB / 0.5179 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.3413, allocations: 169.5 kB / 0.518 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3413, allocations: 2.344 kB / 0.518 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.3415, allocations: 74.3 kB / 0.5181 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.342, allocations: 58.7 kB / 0.5182 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.3449, allocations: 2.559 MB / 0.5207 GB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.3454, allocations: 0.7793 MB / 0.5214 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.3455, allocations: 48 kB / 0.5215 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.3457, allocations: 91.55 kB / 0.5216 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3457, allocations: 0 / 0.5216 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.926/2.272, allocations: 4.933 MB / 0.5264 GB, free: 10.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/10.67, allocations: 17.84 kB / 0.5264 GB, free: 10.05 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)