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: "" <> 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.001423/0.001423, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.00147/0.00147, allocations: 195 kB / 18 MB, free: 5.105 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.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1799/0.1799, allocations: 37.99 MB / 309.2 MB, free: 5.957 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.001344/0.001344, allocations: 67.89 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09376/0.09512, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005185/0.1003, allocations: 4.042 MB / 490.6 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1018, allocations: 0.9435 MB / 491.6 MB, free: 3.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.102, allocations: 11.94 kB / 491.6 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.1022, allocations: 47.56 kB / 491.6 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004938/0.1027, allocations: 179 kB / 491.8 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.103, allocations: 91.81 kB / 491.9 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004401/0.1034, allocations: 410.5 kB / 492.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1037, allocations: 122.5 kB / 492.4 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.1039, allocations: 191.2 kB / 492.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.1043, allocations: 199.3 kB / 492.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.1043, allocations: 20 kB / 492.8 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.1044, allocations: 24 kB / 492.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1045, allocations: 103.7 kB / 493 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.1046, allocations: 147.2 kB / 493.1 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.105, allocations: 322.8 kB / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.105, allocations: 0 / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.105, allocations: 0 / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.105, allocations: 0 / 493.4 MB, free: 2.004 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.001033/0.1061, allocations: 0.6167 MB / 494 MB, free: 1.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1061, allocations: 11.89 kB / 494 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.348e-05/0.1062, allocations: 66.67 kB / 494.1 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.1063, allocations: 32.47 kB / 494.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.1068, allocations: 339.1 kB / 494.5 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.1068, allocations: 16.94 kB / 494.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.1069, allocations: 31.92 kB / 494.5 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004522/0.1073, allocations: 316.5 kB / 494.8 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1074, allocations: 0 / 494.8 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.1074, allocations: 8 kB / 494.8 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1074, allocations: 4 kB / 494.8 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.1077, allocations: 221.5 kB / 495.1 MB, free: 240 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.1092, allocations: 1.348 MB / 496.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.1095, allocations: 145.2 kB / 496.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.067e-05/0.1096, allocations: 61.75 kB / 496.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.1096, allocations: 0 / 496.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.1097, allocations: 34.56 kB / 496.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.1097, allocations: 7.938 kB / 496.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007171/0.1104, allocations: 364.4 kB / 497 MB, free: 14.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.1105, allocations: 89.14 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.1107, allocations: 251 kB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.1107, allocations: 25.7 kB / 497.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1109, allocations: 211.5 kB / 497.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.1109, allocations: 43.36 kB / 497.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.43e-05/0.111, allocations: 41.7 kB / 497.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1111, allocations: 342.8 kB / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.882e-05/0.1112, allocations: 63.89 kB / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.1113, allocations: 144.8 kB / 498.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.1116, allocations: 240.6 kB / 498.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1116, allocations: 0 / 498.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003405/0.112, allocations: 256.9 kB / 498.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.112, allocations: 4 kB / 498.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.112, allocations: 4 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.112, allocations: 4 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.1122, allocations: 47.91 kB / 498.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1122, allocations: 8.438 kB / 498.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1123, allocations: 15.98 kB / 498.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1124, allocations: 19.91 kB / 498.8 MB, free: 12.23 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.0001324/0.1125, allocations: 153.8 kB / 498.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.425e-05/0.1126, allocations: 27.7 kB / 499 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/0.1129, allocations: 199.2 kB / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1129, allocations: 4 kB / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1129, allocations: 0 / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1129, allocations: 0 / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006248/0.1135, allocations: 0.5577 MB / 499.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1136, allocations: 4 kB / 499.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.1137, allocations: 27.98 kB / 499.7 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1137, allocations: 4 kB / 499.7 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.1137, allocations: 4 kB / 499.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1137, allocations: 7.875 kB / 499.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1137, allocations: 4 kB / 499.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.114, allocations: 296.7 kB / 0.4883 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.605e-05/0.1141, allocations: 96.73 kB / 0.4884 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1141, allocations: 11.98 kB / 0.4884 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1143, allocations: 3.938 kB / 0.4884 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.789e-05/0.1143, allocations: 15.98 kB / 0.4885 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.1143, allocations: 4 kB / 0.4885 GB, free: 10.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.1145, allocations: 186 kB / 0.4886 GB, free: 10.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1145, allocations: 0 / 0.4886 GB, free: 10.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.1148, allocations: 51.94 kB / 0.4887 GB, free: 10.47 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.0005238/0.1153, allocations: 0.8269 MB / 0.4895 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002535/0.1156, allocations: 159.7 kB / 0.4896 GB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1156, allocations: 0 / 0.4896 GB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1157, allocations: 71.89 kB / 0.4897 GB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.1162, allocations: 58.31 kB / 0.4898 GB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1187, allocations: 2.557 MB / 0.4923 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.119, allocations: 0.7792 MB / 0.493 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.1191, allocations: 50.25 kB / 0.4931 GB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.1193, allocations: 91.39 kB / 0.4932 GB, free: 5.652 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1193, allocations: 4 kB / 0.4932 GB, free: 5.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.1398, allocations: 4.999 MB / 0.4981 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/7.874, allocations: 19.58 kB / 0.4981 GB, free: 0.5742 MB / 382.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)