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.002185/0.002185, allocations: 184.7 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001158, allocations: 85.27 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.281/0.281, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.692e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 56.31 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.486/0.5923, allocations: 101.6 MB / 0.5614 GB, free: 1.945 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003337/0.5927, allocations: 83.95 kB / 0.5614 GB, free: 1.863 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07261/0.6653, allocations: 15.74 MB / 0.5768 GB, free: 1.973 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6653, allocations: 3.938 kB / 0.5768 GB, free: 1.969 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.6654, allocations: 12 kB / 0.5768 GB, free: 1.957 MB / 410.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.002109/0.6675, allocations: 0.7824 MB / 0.5776 GB, free: 1.121 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.6676, allocations: 12.03 kB / 0.5776 GB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/0.6678, allocations: 98.48 kB / 0.5777 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007597/0.6686, allocations: 83.3 kB / 0.5778 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002619/0.6713, allocations: 0.7012 MB / 0.5785 GB, free: 184 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-05/0.6714, allocations: 32.78 kB / 0.5785 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.6715, allocations: 43.98 kB / 0.5785 GB, free: 104 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/0.6736, allocations: 0.8339 MB / 0.5794 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.6737, allocations: 3.938 kB / 0.5794 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.6738, allocations: 23.95 kB / 0.5794 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000244/0.6741, allocations: 56.73 kB / 0.5794 GB, free: 15.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.6761, allocations: 0.7528 MB / 0.5802 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006274/0.6824, allocations: 2.645 MB / 0.5828 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.6841, allocations: 0.5838 MB / 0.5833 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.6854, allocations: 475.1 kB / 0.5838 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.318e-05/0.6855, allocations: 7.984 kB / 0.5838 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.6856, allocations: 42.56 kB / 0.5838 GB, free: 10.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=60): time 2.956e-06/0.6856, allocations: 0 / 0.5838 GB, free: 10.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=61): time 0.004094/0.6897, allocations: 1.492 MB / 0.5853 GB, free: 8.965 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.6899, allocations: 138.8 kB / 0.5854 GB, free: 8.805 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.6904, allocations: 246.7 kB / 0.5856 GB, free: 8.555 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.6905, allocations: 33.73 kB / 0.5857 GB, free: 8.516 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.6907, allocations: 303 kB / 0.586 GB, free: 8.219 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.691, allocations: 207.7 kB / 0.5862 GB, free: 8.016 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-05/0.6911, allocations: 8 kB / 0.5862 GB, free: 8.008 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.6913, allocations: 334.8 kB / 0.5865 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008376/0.6921, allocations: 353 kB / 0.5868 GB, free: 7.324 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009545/0.6931, allocations: 491 kB / 0.5873 GB, free: 6.797 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.6942, allocations: 471.3 kB / 0.5877 GB, free: 6.332 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.6942, allocations: 0 / 0.5877 GB, free: 6.332 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002422/0.6966, allocations: 0.983 MB / 0.5887 GB, free: 5.332 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.6968, allocations: 69.66 kB / 0.5888 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.6968, allocations: 4.469 kB / 0.5888 GB, free: 5.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.6971, allocations: 44.84 kB / 0.5888 GB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007021/0.6978, allocations: 87.81 kB / 0.5889 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.6998, allocations: 1.449 MB / 0.5903 GB, free: 3.535 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.7005, allocations: 31.95 kB / 0.5903 GB, free: 3.504 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.664e-05/0.7006, allocations: 31.92 kB / 0.5904 GB, free: 3.473 MB / 426.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.0003355/0.701, allocations: 204.4 kB / 0.5906 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.7011, allocations: 39.53 kB / 0.5906 GB, free: 3.223 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.7039, allocations: 1.12 MB / 0.5917 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.717e-05/0.704, allocations: 12 kB / 0.5917 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.704, allocations: 4 kB / 0.5917 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.704, allocations: 3.984 kB / 0.5917 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004314/0.7084, allocations: 1.815 MB / 0.5935 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.7084, allocations: 0 / 0.5935 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005601/0.709, allocations: 63.95 kB / 0.5936 GB, free: 120 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.7092, allocations: 44.77 kB / 0.5936 GB, free: 72 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.988e-05/0.7093, allocations: 12 kB / 0.5936 GB, free: 60 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.711, allocations: 1.437 MB / 0.595 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7111, allocations: 0 / 0.595 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.7139, allocations: 1.243 MB / 0.5962 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004707/0.7144, allocations: 188.4 kB / 0.5964 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.7145, allocations: 12 kB / 0.5964 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.715, allocations: 31.95 kB / 0.5965 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.7152, allocations: 39.95 kB / 0.5965 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.7153, allocations: 15.98 kB / 0.5965 GB, free: 12.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003183/0.7157, allocations: 198.2 kB / 0.5967 GB, free: 12.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7157, allocations: 4 kB / 0.5967 GB, free: 12.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009039/0.7166, allocations: 159.9 kB / 0.5969 GB, free: 12.54 MB / 442.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.003433/0.72, allocations: 2.052 MB / 0.5989 GB, free: 10.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.7231, allocations: 1.393 MB / 0.6002 GB, free: 9.016 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.7231, allocations: 3.938 kB / 0.6002 GB, free: 9.012 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.7249, allocations: 0.9404 MB / 0.6011 GB, free: 8.047 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006901/0.7256, allocations: 60.91 kB / 0.6012 GB, free: 7.984 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.7295, allocations: 1.415 MB / 0.6026 GB, free: 6.516 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007475/0.7303, allocations: 0.914 MB / 0.6035 GB, free: 5.578 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.7308, allocations: 163.4 kB / 0.6036 GB, free: 5.418 MB / 442.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7308, allocations: 0 / 0.6036 GB, free: 5.418 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.112/3.843, allocations: 10.7 MB / 0.6141 GB, free: 10.71 MB / 458.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)