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.001549/0.001549, allocations: 112.6 kB / 17.07 MB, free: 5.977 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.001495/0.001495, allocations: 193.4 kB / 18 MB, free: 5.066 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1764/0.1764, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 71.89 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3058, allocations: 58.05 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004339/0.3102, allocations: 3.913 MB / 0.5074 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3114, allocations: 0.8703 MB / 0.5083 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3115, allocations: 10.69 kB / 0.5083 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.3117, allocations: 44.38 kB / 0.5083 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003994/0.3121, allocations: 171.4 kB / 0.5085 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.3123, allocations: 85.92 kB / 0.5086 GB, free: 4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.3127, allocations: 372 kB / 0.5089 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.3129, allocations: 88.59 kB / 0.509 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.3131, allocations: 161 kB / 0.5092 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/0.3134, allocations: 164 kB / 0.5093 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.3134, allocations: 16.16 kB / 0.5094 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.538e-05/0.3134, allocations: 20.62 kB / 0.5094 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.633e-05/0.3136, allocations: 80.09 kB / 0.5094 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.3137, allocations: 128 kB / 0.5096 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.314, allocations: 256.5 kB / 0.5098 GB, free: 3.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3141, allocations: 4.641 kB / 0.5098 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3141, allocations: 1.25 kB / 0.5098 GB, free: 3.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3141, allocations: 0 / 0.5098 GB, free: 3.449 MB / 382.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.0007198/0.3148, allocations: 0.569 MB / 0.5104 GB, free: 2.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.3148, allocations: 10.06 kB / 0.5104 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.3149, allocations: 54.58 kB / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.315, allocations: 31.34 kB / 0.5105 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.3154, allocations: 332.4 kB / 0.5108 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3154, allocations: 17.56 kB / 0.5108 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.3154, allocations: 17.25 kB / 0.5108 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.3158, allocations: 270.4 kB / 0.5111 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3158, allocations: 0 / 0.5111 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.3158, allocations: 6.281 kB / 0.5111 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.3158, allocations: 7.031 kB / 0.5111 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.316, allocations: 166 kB / 0.5112 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009388/0.317, allocations: 1.18 MB / 0.5124 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.3171, allocations: 70.77 kB / 0.5125 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.21e-05/0.3172, allocations: 31.2 kB / 0.5125 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.3172, allocations: 5.859 kB / 0.5125 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/0.3172, allocations: 36.45 kB / 0.5125 GB, free: 1.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.3172, allocations: 0 / 0.5125 GB, free: 1.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005644/0.3178, allocations: 417.5 kB / 0.5129 GB, free: 0.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.3178, allocations: 79.02 kB / 0.513 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.318, allocations: 256.7 kB / 0.5133 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/0.318, allocations: 29.83 kB / 0.5133 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.3181, allocations: 193.7 kB / 0.5135 GB, free: 428 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.3182, allocations: 26.31 kB / 0.5135 GB, free: 408 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.3182, allocations: 46.02 kB / 0.5135 GB, free: 372 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.954e-05/0.3183, allocations: 330.4 kB / 0.5139 GB, free: 44 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.851e-05/0.3183, allocations: 26.98 kB / 0.5139 GB, free: 36 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.3184, allocations: 119.7 kB / 0.514 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.3186, allocations: 168.5 kB / 0.5142 GB, free: 15.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3187, allocations: 1.125 kB / 0.5142 GB, free: 15.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000264/0.3189, allocations: 194.6 kB / 0.5143 GB, free: 15.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.319, allocations: 10.12 kB / 0.5143 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.319, allocations: 8.375 kB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.319, allocations: 4.812 kB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.3191, allocations: 35.8 kB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.3191, allocations: 10.3 kB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.144e-05/0.3192, allocations: 7.5 kB / 0.5144 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3193, allocations: 9.922 kB / 0.5144 GB, free: 15.61 MB / 398.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.0001292/0.3194, allocations: 150.3 kB / 0.5146 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.3194, allocations: 28.83 kB / 0.5146 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.3196, allocations: 95.7 kB / 0.5147 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3196, allocations: 2.219 kB / 0.5147 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3196, allocations: 0 / 0.5147 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3196, allocations: 1.609 kB / 0.5147 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004767/0.3201, allocations: 421.9 kB / 0.5151 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3201, allocations: 1.984 kB / 0.5151 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.965e-05/0.3202, allocations: 20.48 kB / 0.5151 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3202, allocations: 5.625 kB / 0.5151 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.3203, allocations: 3.25 kB / 0.5151 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3203, allocations: 1.219 kB / 0.5151 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3203, allocations: 0 / 0.5151 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.3205, allocations: 233.8 kB / 0.5153 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.3206, allocations: 99.14 kB / 0.5154 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.3206, allocations: 2.031 kB / 0.5154 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3208, allocations: 6.234 kB / 0.5154 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.425e-05/0.3208, allocations: 4.703 kB / 0.5155 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.3208, allocations: 2.594 kB / 0.5155 GB, free: 14.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.321, allocations: 170.5 kB / 0.5156 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.321, allocations: 1.125 kB / 0.5156 GB, free: 14.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.3213, allocations: 38.66 kB / 0.5157 GB, free: 14.61 MB / 398.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.0005449/0.3218, allocations: 0.7662 MB / 0.5164 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001932/0.322, allocations: 90.59 kB / 0.5165 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3221, allocations: 0 / 0.5165 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.273e-05/0.3221, allocations: 35.69 kB / 0.5165 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.3226, allocations: 62.38 kB / 0.5166 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.3251, allocations: 2.306 MB / 0.5188 GB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.3255, allocations: 0.766 MB / 0.5196 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.3256, allocations: 30.33 kB / 0.5196 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3257, allocations: 69.64 kB / 0.5197 GB, free: 11.21 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3257, allocations: 0 / 0.5197 GB, free: 11.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.508/1.834, allocations: 4.149 MB / 0.5237 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.432/10.27, allocations: 5.359 kB / 0.5237 GB, free: 10.62 MB / 398.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)