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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001199/0.001199, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001147/0.001147, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1702/0.1702, allocations: 38.03 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 58.53 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.09013, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005441/0.09561, allocations: 3.91 MB / 460.9 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.09724, allocations: 0.8727 MB / 461.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.0975, allocations: 11.94 kB / 461.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.09773, allocations: 43.58 kB / 461.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005685/0.09831, allocations: 167.1 kB / 462 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/0.09857, allocations: 87.83 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.099, allocations: 370.7 kB / 462.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.0992, allocations: 84.55 kB / 462.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002612/0.09947, allocations: 163.3 kB / 462.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.09982, allocations: 163.4 kB / 462.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.915e-05/0.09988, allocations: 16 kB / 462.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.572e-05/0.09994, allocations: 19.94 kB / 462.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1001, allocations: 87.72 kB / 462.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.1002, allocations: 119.4 kB / 463.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.1005, allocations: 255.1 kB / 463.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1005, allocations: 7.938 kB / 463.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1005, allocations: 0 / 463.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1005, allocations: 0 / 463.3 MB, free: 1.555 MB / 334.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.0008818/0.1014, allocations: 0.5466 MB / 463.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1015, allocations: 19.81 kB / 463.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.1015, allocations: 54.73 kB / 463.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.46e-05/0.1016, allocations: 32.56 kB / 464 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.102, allocations: 307.8 kB / 464.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.102, allocations: 16.44 kB / 464.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.1021, allocations: 20 kB / 464.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.1025, allocations: 270 kB / 464.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1025, allocations: 0 / 464.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.1025, allocations: 15.98 kB / 464.6 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.1025, allocations: 4 kB / 464.6 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.1028, allocations: 159.8 kB / 464.7 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.1043, allocations: 1.183 MB / 465.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.1044, allocations: 73.11 kB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.543e-05/0.1045, allocations: 37.81 kB / 466 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.1045, allocations: 0 / 466 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.1045, allocations: 34.56 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1046, allocations: 0 / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007834/0.1053, allocations: 404.8 kB / 466.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.1054, allocations: 93.11 kB / 466.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.1057, allocations: 250.4 kB / 466.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.1057, allocations: 25.7 kB / 466.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1058, allocations: 191.6 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.1059, allocations: 27.64 kB / 467 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.355e-05/0.1059, allocations: 37.62 kB / 467.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1061, allocations: 334.8 kB / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.1062, allocations: 23.98 kB / 467.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1063, allocations: 127 kB / 467.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.1065, allocations: 168.6 kB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.1065, allocations: 4 kB / 467.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002577/0.1067, allocations: 189.2 kB / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1068, allocations: 11.92 kB / 467.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1068, allocations: 4 kB / 467.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1068, allocations: 8 kB / 467.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.107, allocations: 39.92 kB / 468 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.107, allocations: 4 kB / 468 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.946e-05/0.1071, allocations: 8.438 kB / 468 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.1071, allocations: 12.44 kB / 468 MB, free: 12.43 MB / 350.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.0001203/0.1073, allocations: 149.7 kB / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.1073, allocations: 23.66 kB / 468.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001503/0.1075, allocations: 95.38 kB / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1075, allocations: 0 / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1075, allocations: 4 kB / 468.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1075, allocations: 4 kB / 468.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004164/0.1079, allocations: 423.2 kB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1079, allocations: 0 / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.108, allocations: 27.92 kB / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1081, allocations: 0 / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1081, allocations: 0 / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.1081, allocations: 4 kB / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1081, allocations: 0 / 468.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.1083, allocations: 232.9 kB / 468.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.1084, allocations: 92.86 kB / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.1084, allocations: 8.078 kB / 469 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.1085, allocations: 7.938 kB / 469 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2e-05/0.1086, allocations: 4 kB / 469 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.1086, allocations: 0 / 469 MB, free: 11.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.1087, allocations: 174 kB / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1087, allocations: 4.062 kB / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.1091, allocations: 40 kB / 469.2 MB, free: 11.05 MB / 350.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.0004911/0.1096, allocations: 0.7568 MB / 470 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.1097, allocations: 95.84 kB / 470.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1098, allocations: 0 / 470.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.856e-05/0.1098, allocations: 31.92 kB / 470.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.1103, allocations: 53.41 kB / 470.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.1127, allocations: 2.302 MB / 472.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.113, allocations: 0.7597 MB / 473.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1131, allocations: 26.28 kB / 473.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.42e-05/0.1132, allocations: 75.5 kB / 473.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1133, allocations: 3.938 kB / 473.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.1339, allocations: 4.069 MB / 477.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.268/7.402, allocations: 11.56 kB / 477.4 MB, free: 2.707 MB / 350.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)