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.001122/0.001122, 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.001085/0.001085, 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.267/1.267, 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.1717/0.1717, allocations: 37.99 MB / 309.2 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.00146/0.00146, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.0955, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005613/0.1011, allocations: 4.034 MB / 490.6 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.103, allocations: 0.9474 MB / 491.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003002/0.1034, allocations: 7.938 kB / 491.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.1036, allocations: 47.56 kB / 491.6 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000646/0.1043, allocations: 183 kB / 491.8 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.1046, allocations: 95.81 kB / 491.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005662/0.1052, allocations: 402.5 kB / 492.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.1055, allocations: 122.5 kB / 492.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003487/0.1058, allocations: 183.2 kB / 492.6 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004482/0.1063, allocations: 207.3 kB / 492.8 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.1064, allocations: 20 kB / 492.8 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.1064, allocations: 23.94 kB / 492.9 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.1066, allocations: 107.7 kB / 493 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.1068, allocations: 151.2 kB / 493.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.1073, allocations: 318.9 kB / 493.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1073, allocations: 0 / 493.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1073, allocations: 0 / 493.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1073, allocations: 0 / 493.4 MB, free: 1.988 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.001247/0.1086, allocations: 0.6206 MB / 494 MB, free: 1.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1086, allocations: 11.89 kB / 494.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.1087, allocations: 58.73 kB / 494.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.1088, allocations: 40.45 kB / 494.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005244/0.1093, allocations: 339.1 kB / 494.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1093, allocations: 16.94 kB / 494.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.1094, allocations: 19.94 kB / 494.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.1099, allocations: 324.5 kB / 494.8 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.1099, allocations: 3.938 kB / 494.8 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.11, allocations: 12 kB / 494.8 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.11, allocations: 4 kB / 494.9 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.1104, allocations: 221.5 kB / 495.1 MB, free: 216 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.1121, allocations: 1.348 MB / 496.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.1124, allocations: 149.1 kB / 496.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.948e-05/0.1125, allocations: 57.75 kB / 496.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.1125, allocations: 4 kB / 496.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.1126, allocations: 30.56 kB / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.1126, allocations: 0 / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.000786/0.1134, allocations: 368.3 kB / 497 MB, free: 14.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.1134, allocations: 85.23 kB / 497.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.1137, allocations: 259 kB / 497.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1137, allocations: 25.7 kB / 497.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1139, allocations: 199.6 kB / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.1139, allocations: 51.34 kB / 497.6 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.816e-05/0.114, allocations: 45.69 kB / 497.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1141, allocations: 338.8 kB / 498 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.719e-05/0.1142, allocations: 59.91 kB / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.1144, allocations: 152.7 kB / 498.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.1147, allocations: 236.7 kB / 498.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1147, allocations: 0 / 498.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003805/0.1151, allocations: 252.8 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1151, allocations: 8 kB / 498.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1151, allocations: 4 kB / 498.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.1151, allocations: 4 kB / 498.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.1153, allocations: 55.91 kB / 498.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1153, allocations: 8.375 kB / 498.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1155, allocations: 12 kB / 498.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1155, allocations: 15.94 kB / 498.8 MB, free: 12.21 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.0001841/0.1157, allocations: 157.8 kB / 498.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.1158, allocations: 23.72 kB / 499 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003351/0.1161, allocations: 199.2 kB / 499.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1161, allocations: 0 / 499.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1161, allocations: 4 kB / 499.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1161, allocations: 0 / 499.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006172/0.1168, allocations: 0.5538 MB / 499.7 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1168, allocations: 0 / 499.7 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.1169, allocations: 27.98 kB / 499.7 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.1169, allocations: 0 / 499.7 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.1169, allocations: 11.98 kB / 499.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.117, allocations: 7.875 kB / 499.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.117, allocations: 0 / 499.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.1173, allocations: 296.7 kB / 0.4883 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.1173, allocations: 100.7 kB / 0.4884 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.1174, allocations: 8 kB / 0.4884 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.1175, allocations: 3.938 kB / 0.4884 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.1176, allocations: 11.98 kB / 0.4885 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1176, allocations: 4 kB / 0.4885 GB, free: 10.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.1177, allocations: 186 kB / 0.4886 GB, free: 10.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1178, allocations: 4 kB / 0.4886 GB, free: 10.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.1181, allocations: 48 kB / 0.4887 GB, free: 10.46 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.0006274/0.1187, allocations: 0.823 MB / 0.4895 GB, free: 9.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002915/0.119, allocations: 167.7 kB / 0.4896 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.119, allocations: 0 / 0.4896 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.1192, allocations: 67.91 kB / 0.4897 GB, free: 9.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.1196, allocations: 70.23 kB / 0.4898 GB, free: 9.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.1224, allocations: 2.558 MB / 0.4923 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1227, allocations: 0.7831 MB / 0.493 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.1229, allocations: 46.25 kB / 0.4931 GB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.123, allocations: 83.41 kB / 0.4932 GB, free: 5.641 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.123, allocations: 0 / 0.4932 GB, free: 5.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.1466, allocations: 5.01 MB / 0.4981 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.728, allocations: 15.64 kB / 0.4981 GB, free: 0.5586 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)