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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002219/0.002219, allocations: 186.4 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, allocations: 205.3 MB / 213.7 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001105, allocations: 86.7 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2578/0.2578, allocations: 38 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.154e-05/2.155e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.474/0.5791, allocations: 101 MB / 0.5539 GB, free: 9.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5794, allocations: 93.16 kB / 0.554 GB, free: 9.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06696/0.6464, allocations: 15.61 MB / 0.5693 GB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.6465, allocations: 0 / 0.5693 GB, free: 13.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.6465, allocations: 8 kB / 0.5693 GB, free: 13.36 MB / 378.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.002204/0.6488, allocations: 0.7948 MB / 0.57 GB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.6488, allocations: 8.031 kB / 0.5701 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009388/0.6498, allocations: 95.23 kB / 0.5701 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002677/0.6525, allocations: 0.6962 MB / 0.5708 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.6526, allocations: 16 kB / 0.5708 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.6527, allocations: 24 kB / 0.5709 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001565/0.6543, allocations: 0.5987 MB / 0.5715 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.6561, allocations: 0.7883 MB / 0.5722 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.712e-05/0.6561, allocations: 7.891 kB / 0.5722 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-05/0.6562, allocations: 4 kB / 0.5722 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002623/0.6565, allocations: 60.66 kB / 0.5723 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.6632, allocations: 2.635 MB / 0.5749 GB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.6645, allocations: 0.599 MB / 0.5754 GB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008608/0.6654, allocations: 492 kB / 0.5759 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.445e-05/0.6655, allocations: 7.984 kB / 0.5759 GB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.6656, allocations: 38.25 kB / 0.576 GB, free: 7.504 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 6.121e-06/0.6656, allocations: 0 / 0.576 GB, free: 7.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.005303/0.6709, allocations: 1.679 MB / 0.5776 GB, free: 6.156 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.6711, allocations: 141.8 kB / 0.5777 GB, free: 6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003685/0.6715, allocations: 232.3 kB / 0.578 GB, free: 5.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.96e-05/0.6716, allocations: 29.7 kB / 0.578 GB, free: 5.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.6718, allocations: 298.6 kB / 0.5783 GB, free: 5.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/0.672, allocations: 204.3 kB / 0.5785 GB, free: 5.332 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.6721, allocations: 3.938 kB / 0.5785 GB, free: 5.328 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6723, allocations: 333.4 kB / 0.5788 GB, free: 5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007377/0.673, allocations: 368.8 kB / 0.5791 GB, free: 4.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.6739, allocations: 495.4 kB / 0.5796 GB, free: 4.344 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.6757, allocations: 0.5536 MB / 0.5802 GB, free: 3.918 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.6758, allocations: 0 / 0.5802 GB, free: 3.918 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00307/0.6788, allocations: 1.064 MB / 0.5812 GB, free: 3.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.679, allocations: 72.25 kB / 0.5813 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.679, allocations: 11.97 kB / 0.5813 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/0.6793, allocations: 36.62 kB / 0.5813 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006893/0.68, allocations: 87.25 kB / 0.5814 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.6817, allocations: 1.376 MB / 0.5827 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007307/0.6824, allocations: 32.02 kB / 0.5828 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.57e-05/0.6826, allocations: 26.48 kB / 0.5828 GB, free: 1.426 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * 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.0003267/0.6829, allocations: 187.7 kB / 0.583 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003193/0.6861, allocations: 1.119 MB / 0.5841 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.6863, allocations: 43.44 kB / 0.5841 GB, free: 336 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/0.6897, allocations: 1.15 MB / 0.5852 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000136/0.6898, allocations: 23.94 kB / 0.5852 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.6899, allocations: 0 / 0.5852 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.6899, allocations: 3.984 kB / 0.5853 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.6949, allocations: 1.788 MB / 0.587 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-06/0.695, allocations: 0 / 0.587 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.6955, allocations: 62.58 kB / 0.5871 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001828/0.6957, allocations: 34.77 kB / 0.5871 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.6958, allocations: 12.06 kB / 0.5871 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.6973, allocations: 1.372 MB / 0.5884 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.6974, allocations: 0 / 0.5884 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003293/0.7007, allocations: 1.274 MB / 0.5897 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.7012, allocations: 187.9 kB / 0.5899 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.7013, allocations: 7.984 kB / 0.5899 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005496/0.7019, allocations: 27.95 kB / 0.5899 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.7021, allocations: 46.7 kB / 0.5899 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.722e-05/0.7022, allocations: 19.61 kB / 0.59 GB, free: 11.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002555/0.7025, allocations: 179.2 kB / 0.5901 GB, free: 11.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7025, allocations: 0 / 0.5901 GB, free: 11.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000916/0.7034, allocations: 163.5 kB / 0.5903 GB, free: 10.86 MB / 394.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 3 * 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.003941/0.7074, allocations: 2.07 MB / 0.5923 GB, free: 9.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.7105, allocations: 1.412 MB / 0.5937 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.453e-06/0.7105, allocations: 0 / 0.5937 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.7122, allocations: 0.9518 MB / 0.5946 GB, free: 7.406 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007356/0.713, allocations: 50.95 kB / 0.5947 GB, free: 7.363 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.7168, allocations: 1.395 MB / 0.596 GB, free: 6.148 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007165/0.7176, allocations: 0.9131 MB / 0.5969 GB, free: 5.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005139/0.7181, allocations: 162.4 kB / 0.5971 GB, free: 5.184 MB / 394.7 MB Notification: Performance of SimCode: time 1.482e-06/0.7182, allocations: 4 kB / 0.5971 GB, free: 5.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.215/3.933, allocations: 10.88 MB / 0.6077 GB, free: 10.4 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)