Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.0009726/0.000973, allocations: 92.28 kB / 16.65 MB, free: 6.535 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.001423/0.001423, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.72/1.72, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2031/0.2031, allocations: 38.04 MB / 310.1 MB, free: 5.922 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.0005418/0.0005419, allocations: 15.98 kB / 377.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3077, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005695/0.3135, allocations: 6.921 MB / 440.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.3165, allocations: 2.346 MB / 442.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.3169, allocations: 47.69 kB / 442.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.3172, allocations: 103.2 kB / 443 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007617/0.318, allocations: 362.5 kB / 443.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.3188, allocations: 359.3 kB / 443.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.3198, allocations: 1.497 MB / 445.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.321, allocations: 0.8391 MB / 446 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003837/0.3214, allocations: 334.4 kB / 446.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.3219, allocations: 0.5412 MB / 446.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.322, allocations: 32 kB / 446.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003777/0.3224, allocations: 235.6 kB / 447.2 MB, free: 5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.3227, allocations: 383.1 kB / 447.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.3229, allocations: 407.7 kB / 447.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006803/0.3236, allocations: 0.9693 MB / 448.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3236, allocations: 0 / 448.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3237, allocations: 7.938 kB / 448.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.3237, allocations: 0 / 448.9 MB, free: 3.238 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001385/0.3251, allocations: 0.9236 MB / 449.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3251, allocations: 8.031 kB / 449.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.3252, allocations: 131.3 kB / 450 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009055/0.3262, allocations: 135.8 kB / 450.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006612/0.3268, allocations: 0.5205 MB / 450.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.3269, allocations: 58.38 kB / 450.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.327, allocations: 83.84 kB / 450.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.3282, allocations: 1.134 MB / 451.9 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.3283, allocations: 7.875 kB / 451.9 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.3283, allocations: 36 kB / 451.9 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.741e-05/0.3284, allocations: 49.98 kB / 452 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.3298, allocations: 0.8662 MB / 452.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005324/0.3351, allocations: 5.063 MB / 457.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006948/0.3358, allocations: 420.6 kB / 458.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/0.3362, allocations: 201.7 kB / 458.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.3362, allocations: 15.98 kB / 458.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.3363, allocations: 42.5 kB / 458.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.154e-06/0.3363, allocations: 0 / 458.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.00189/0.3382, allocations: 1.071 MB / 459.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.3383, allocations: 85.11 kB / 459.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005859/0.3389, allocations: 497.8 kB / 460.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.3389, allocations: 37.7 kB / 460.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.3393, allocations: 449.7 kB / 460.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.3394, allocations: 169.9 kB / 460.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-05/0.3395, allocations: 65.69 kB / 460.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.3397, allocations: 374.7 kB / 461.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/0.3401, allocations: 233.9 kB / 461.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007166/0.3408, allocations: 0.6248 MB / 462.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.3421, allocations: 0.934 MB / 463.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.3421, allocations: 4 kB / 463.1 MB, free: 4.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001391/0.3435, allocations: 0.8959 MB / 464 MB, free: 3.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3435, allocations: 8 kB / 464 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.3435, allocations: 16 kB / 464 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.373e-05/0.3436, allocations: 19.94 kB / 464 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006853/0.3443, allocations: 223.6 kB / 464.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.788e-05/0.3443, allocations: 24.38 kB / 464.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.3447, allocations: 55.86 kB / 464.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/0.3448, allocations: 40 kB / 464.4 MB, free: 2.871 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0003975/0.3452, allocations: 309.3 kB / 464.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.3453, allocations: 51.34 kB / 464.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009735/0.3463, allocations: 0.5564 MB / 465.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3463, allocations: 11.94 kB / 465.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.3463, allocations: 0 / 465.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3463, allocations: 0 / 465.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.3484, allocations: 1.331 MB / 466.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3484, allocations: 4 kB / 466.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004025/0.3488, allocations: 111.8 kB / 466.7 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.411e-05/0.3489, allocations: 7.938 kB / 466.7 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.3489, allocations: 12 kB / 466.8 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.697e-06/0.3489, allocations: 8.234 kB / 466.8 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3489, allocations: 8 kB / 466.8 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008628/0.3498, allocations: 0.6441 MB / 467.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3499, allocations: 128.3 kB / 467.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.35, allocations: 16 kB / 467.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.3502, allocations: 27.97 kB / 467.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.561e-05/0.3503, allocations: 31.91 kB / 467.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.3504, allocations: 23.98 kB / 467.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000352/0.3507, allocations: 322.9 kB / 467.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3507, allocations: 0 / 467.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006424/0.3514, allocations: 164 kB / 468.1 MB, free: 14.97 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 50 * 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.001009/0.3524, allocations: 1.19 MB / 469.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008076/0.3532, allocations: 0.6064 MB / 469.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.3532, allocations: 0 / 469.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.3535, allocations: 235.5 kB / 470.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007851/0.3543, allocations: 111.4 kB / 470.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00793/0.3623, allocations: 6.208 MB / 476.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007212/0.363, allocations: 0.9959 MB / 477.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005789/0.3636, allocations: 229 kB / 477.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.3639, allocations: 255.3 kB / 477.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.364, allocations: 0 / 477.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.3888, allocations: 10.63 MB / 488.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002796/0.3891, allocations: 191.3 kB / 488.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.466, allocations: 3.938 kB / 488.7 MB, free: 9.723 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)