Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.0012/0.0012, allocations: 111 kB / 17.06 MB, free: 5.965 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.001247/0.001247, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.345/1.345, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1846/0.1846, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001407/0.001407, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1008, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005178/0.106, allocations: 3.909 MB / 490.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.1074, allocations: 0.9171 MB / 491.4 MB, free: 3.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.1077, allocations: 7.938 kB / 491.4 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.1079, allocations: 47.56 kB / 491.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000539/0.1084, allocations: 167.1 kB / 491.7 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.1087, allocations: 83.83 kB / 491.7 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004507/0.1091, allocations: 374.7 kB / 492.1 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.1093, allocations: 80.83 kB / 492.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000311/0.1097, allocations: 175.3 kB / 492.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/0.11, allocations: 167.3 kB / 492.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.849e-05/0.1101, allocations: 19.94 kB / 492.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.849e-05/0.1101, allocations: 16 kB / 492.6 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1103, allocations: 83.72 kB / 492.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.1104, allocations: 127.3 kB / 492.8 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.1108, allocations: 259 kB / 493 MB, free: 2.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1108, allocations: 0 / 493 MB, free: 2.406 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1108, allocations: 4 kB / 493 MB, free: 2.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.1108, allocations: 0 / 493 MB, free: 2.402 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001134/0.112, allocations: 0.5545 MB / 493.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.112, allocations: 11.89 kB / 493.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.623e-05/0.1121, allocations: 58.67 kB / 493.6 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.028e-05/0.1122, allocations: 28.56 kB / 493.7 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.1128, allocations: 331.5 kB / 494 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.1129, allocations: 16.44 kB / 494 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.1129, allocations: 24 kB / 494 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.1134, allocations: 266 kB / 494.3 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1134, allocations: 0 / 494.3 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.1134, allocations: 12 kB / 494.3 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1134, allocations: 8 kB / 494.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.1137, allocations: 159.8 kB / 494.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.1153, allocations: 1.179 MB / 495.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.1155, allocations: 69.17 kB / 495.7 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.502e-05/0.1155, allocations: 41.75 kB / 495.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.1156, allocations: 0 / 495.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.1156, allocations: 30.56 kB / 495.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.1156, allocations: 0 / 495.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007701/0.1164, allocations: 413.2 kB / 496.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.1165, allocations: 85.05 kB / 496.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.1167, allocations: 246.5 kB / 496.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.1167, allocations: 29.7 kB / 496.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1169, allocations: 187.6 kB / 496.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.1169, allocations: 39.56 kB / 496.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.117, allocations: 37.62 kB / 496.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1171, allocations: 330.8 kB / 497.1 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.319e-05/0.1172, allocations: 31.98 kB / 497.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.1173, allocations: 120.9 kB / 497.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.1175, allocations: 164.7 kB / 497.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1176, allocations: 0 / 497.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003171/0.1179, allocations: 189.1 kB / 497.6 MB, free: 13.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.1179, allocations: 11.92 kB / 497.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/0.1179, allocations: 4 kB / 497.6 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.118, allocations: 4 kB / 497.6 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.1181, allocations: 40.36 kB / 497.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1181, allocations: 11.94 kB / 497.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.1183, allocations: 8 kB / 497.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.1183, allocations: 8 kB / 497.7 MB, free: 13.26 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 (22): * Single equations (assignments): 22 * 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.000155/0.1185, allocations: 149.8 kB / 497.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.607e-05/0.1185, allocations: 23.66 kB / 497.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.1187, allocations: 95.38 kB / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.1187, allocations: 0 / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1187, allocations: 0 / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1187, allocations: 0 / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004488/0.1192, allocations: 427.2 kB / 498.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1192, allocations: 0 / 498.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.344e-05/0.1193, allocations: 19.92 kB / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1193, allocations: 4 kB / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1193, allocations: 4 kB / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1193, allocations: 0 / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.1193, allocations: 7.984 kB / 498.4 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.1196, allocations: 232.9 kB / 498.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.213e-05/0.1196, allocations: 96.86 kB / 498.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.1197, allocations: 3.984 kB / 498.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.1198, allocations: 4 kB / 498.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.1198, allocations: 4 kB / 498.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1198, allocations: 4 kB / 498.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1199, allocations: 178 kB / 498.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.12, allocations: 0 / 498.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000303/0.1203, allocations: 43.94 kB / 499 MB, free: 11.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0005036/0.1208, allocations: 0.7609 MB / 499.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001906/0.121, allocations: 83.84 kB / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.121, allocations: 0 / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.179e-05/0.121, allocations: 31.92 kB / 499.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.1216, allocations: 78.44 kB / 499.9 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.1241, allocations: 2.29 MB / 0.4904 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1244, allocations: 0.7636 MB / 0.4912 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.904e-05/0.1245, allocations: 30.28 kB / 0.4912 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.657e-05/0.1246, allocations: 71.41 kB / 0.4913 GB, free: 7.539 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1246, allocations: 0 / 0.4913 GB, free: 7.539 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.1474, allocations: 4.191 MB / 0.4954 GB, free: 3.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.811, allocations: 11.8 kB / 0.4954 GB, free: 3.285 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)