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.001123/0.001123, allocations: 95.33 kB / 16.31 MB, free: 6.004 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.001136/0.001135, allocations: 186.7 kB / 17.2 MB, free: 5.914 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.707/1.707, allocations: 205.4 MB / 223.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3007/0.3007, allocations: 38.05 MB / 309.7 MB, free: 8.902 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.0005539/0.0005541, allocations: 22.19 kB / 376.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1097, allocations: 56.33 MB / 432.9 MB, free: 6.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004488/0.1142, allocations: 3.86 MB / 436.8 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.116, allocations: 1.073 MB / 437.9 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.1163, allocations: 23.81 kB / 437.9 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1165, allocations: 43.67 kB / 437.9 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005657/0.1171, allocations: 179.4 kB / 438.1 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.1173, allocations: 103.8 kB / 438.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002908/0.1176, allocations: 211.5 kB / 438.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.1178, allocations: 64.78 kB / 438.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.118, allocations: 127.5 kB / 438.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.1183, allocations: 127.5 kB / 438.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.1183, allocations: 12 kB / 438.7 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.135e-05/0.1183, allocations: 8 kB / 438.7 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.287e-05/0.1184, allocations: 63.81 kB / 438.8 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.1185, allocations: 73.58 kB / 438.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1187, allocations: 187.4 kB / 439.1 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1187, allocations: 0 / 439.1 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1187, allocations: 3.938 kB / 439.1 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1187, allocations: 0 / 439.1 MB, free: 0.5898 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.0007264/0.1194, allocations: 0.5154 MB / 439.6 MB, free: 28 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1195, allocations: 12.03 kB / 439.6 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.534e-05/0.1196, allocations: 50.55 kB / 439.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.439e-05/0.1196, allocations: 35.61 kB / 439.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.12, allocations: 294.8 kB / 440 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.12, allocations: 16.44 kB / 440 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1201, allocations: 32 kB / 440 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.1205, allocations: 261.8 kB / 440.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1205, allocations: 0 / 440.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.1205, allocations: 15.95 kB / 440.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1205, allocations: 4 kB / 440.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.1208, allocations: 163.8 kB / 440.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.1219, allocations: 1.175 MB / 441.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.1221, allocations: 73.16 kB / 441.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.1221, allocations: 4.062 kB / 441.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1221, allocations: 34.69 kB / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.1221, allocations: 4 kB / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006265/0.1228, allocations: 412.6 kB / 442.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.1228, allocations: 77.11 kB / 442.2 MB, free: 13.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.1231, allocations: 242.6 kB / 442.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1231, allocations: 33.64 kB / 442.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1232, allocations: 191.7 kB / 442.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.1232, allocations: 35.55 kB / 442.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-06/0.1232, allocations: 4 kB / 442.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1234, allocations: 330.8 kB / 443 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.486e-05/0.1234, allocations: 24.38 kB / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.668e-05/0.1235, allocations: 129.4 kB / 443.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.069e-05/0.1236, allocations: 47.94 kB / 443.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1236, allocations: 0 / 443.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002347/0.1239, allocations: 185.5 kB / 443.4 MB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1239, allocations: 8 kB / 443.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1239, allocations: 4 kB / 443.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1239, allocations: 7.984 kB / 443.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1241, allocations: 43.88 kB / 443.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1241, allocations: 4 kB / 443.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.168e-05/0.1242, allocations: 8 kB / 443.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.1242, allocations: 8 kB / 443.5 MB, free: 11.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.1244, allocations: 153.8 kB / 443.6 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.1244, allocations: 23.72 kB / 443.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.1246, allocations: 99.34 kB / 443.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1246, allocations: 4 kB / 443.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1246, allocations: 3.953 kB / 443.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1246, allocations: 0 / 443.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004151/0.125, allocations: 415.3 kB / 444.2 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.125, allocations: 4 kB / 444.2 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.6e-05/0.1251, allocations: 23.95 kB / 444.2 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1251, allocations: 0 / 444.2 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1251, allocations: 7.953 kB / 444.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1252, allocations: 0 / 444.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1252, allocations: 448 / 444.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.1254, allocations: 256.3 kB / 444.5 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/0.1255, allocations: 92.86 kB / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.1255, allocations: 11.98 kB / 444.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.1256, allocations: 4 kB / 444.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.631e-05/0.1256, allocations: 4.094 kB / 444.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.1257, allocations: 3.938 kB / 444.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001431/0.1258, allocations: 174 kB / 444.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1258, allocations: 0 / 444.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.1261, allocations: 44.06 kB / 444.8 MB, free: 10.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005102/0.1266, allocations: 0.9171 MB / 445.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.1268, allocations: 87.84 kB / 445.8 MB, free: 9.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1268, allocations: 0 / 445.8 MB, free: 9.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.332e-05/0.1268, allocations: 27.88 kB / 445.8 MB, free: 9.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.1272, allocations: 49.52 kB / 445.9 MB, free: 9.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.1295, allocations: 3.441 MB / 449.3 MB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1299, allocations: 0.7677 MB / 450.1 MB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.505e-05/0.13, allocations: 30.28 kB / 450.1 MB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.428e-05/0.1301, allocations: 75.41 kB / 450.2 MB, free: 4.773 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1301, allocations: 0 / 450.2 MB, free: 4.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1431, allocations: 3.825 MB / 454 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.1433, allocations: 186.7 kB / 454.2 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.722, allocations: 0 / 454.2 MB, free: 0.6875 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/linux/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) Environment - environmentSimulation: