Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.0008338/0.000834, allocations: 92.47 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.000856/0.000856, allocations: 172.6 kB / 17.56 MB, free: 6.184 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.605/1.605, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1792/0.1792, allocations: 38.05 MB / 310.1 MB, free: 5.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.0005114/0.0005114, allocations: 23.55 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2931, allocations: 56.32 MB / 433.6 MB, free: 18.63 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005794/0.2989, allocations: 6.485 MB / 440.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002787/0.3018, allocations: 1.567 MB / 441.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003684/0.3022, allocations: 47.69 kB / 441.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.3024, allocations: 55.53 kB / 441.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007739/0.3032, allocations: 274.7 kB / 442 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.3035, allocations: 119.9 kB / 442.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008464/0.3044, allocations: 0.9541 MB / 443.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.3047, allocations: 148.2 kB / 443.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000391/0.3051, allocations: 258.7 kB / 443.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005223/0.3057, allocations: 326.7 kB / 443.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.3057, allocations: 23.88 kB / 443.8 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.3058, allocations: 20 kB / 443.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.3059, allocations: 143.6 kB / 444 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.3062, allocations: 244.4 kB / 444.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.3066, allocations: 470.1 kB / 444.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.3066, allocations: 4 kB / 444.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3066, allocations: 3.938 kB / 444.7 MB, free: 7.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.3066, allocations: 0 / 444.7 MB, free: 7.469 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001163/0.3078, allocations: 0.7152 MB / 445.4 MB, free: 6.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.3078, allocations: 8.031 kB / 445.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.411e-05/0.3079, allocations: 78.72 kB / 445.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.308, allocations: 52.28 kB / 445.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.3086, allocations: 424 kB / 446 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.3086, allocations: 29 kB / 446 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.654e-05/0.3087, allocations: 39.98 kB / 446 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006151/0.3093, allocations: 459.5 kB / 446.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.3093, allocations: 0 / 446.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.3094, allocations: 16 kB / 446.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.3094, allocations: 8 kB / 446.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.3098, allocations: 316.4 kB / 446.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.3114, allocations: 1.767 MB / 448.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.3117, allocations: 147.6 kB / 448.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.196e-05/0.3118, allocations: 54.67 kB / 448.8 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3118, allocations: 4 kB / 448.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.3118, allocations: 38.66 kB / 448.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3118, allocations: 0 / 448.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001006/0.3128, allocations: 0.6078 MB / 449.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.3129, allocations: 106.8 kB / 449.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.3133, allocations: 377.5 kB / 449.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.3133, allocations: 29.7 kB / 449.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.3135, allocations: 275.4 kB / 450.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.3135, allocations: 59.31 kB / 450.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.3136, allocations: 37.7 kB / 450.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.3137, allocations: 350.8 kB / 450.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.121e-05/0.3138, allocations: 43.98 kB / 450.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.3139, allocations: 198.5 kB / 450.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.3142, allocations: 270.6 kB / 451.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3142, allocations: 0 / 451.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003372/0.3145, allocations: 289.1 kB / 451.4 MB, free: 212 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3146, allocations: 8 kB / 451.4 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3146, allocations: 4 kB / 451.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.3146, allocations: 12.06 kB / 451.4 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.3148, allocations: 75.91 kB / 451.5 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.3149, allocations: 7.938 kB / 451.5 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.315, allocations: 19.84 kB / 451.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.315, allocations: 16.55 kB / 451.5 MB, free: 68 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0002369/0.3153, allocations: 193.8 kB / 451.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.3154, allocations: 31.62 kB / 451.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.3157, allocations: 168.7 kB / 451.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3157, allocations: 3.984 kB / 451.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3157, allocations: 4 kB / 451.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3157, allocations: 0 / 451.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007505/0.3165, allocations: 0.5382 MB / 452.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3165, allocations: 0 / 452.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.3167, allocations: 31.98 kB / 452.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3167, allocations: 3.984 kB / 452.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.3167, allocations: 4 kB / 452.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3167, allocations: 3.938 kB / 452.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.3167, allocations: 7.938 kB / 452.5 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004728/0.3172, allocations: 396 kB / 452.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.3173, allocations: 108.6 kB / 453 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.3173, allocations: 8.031 kB / 453 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.3175, allocations: 7.938 kB / 453 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.3175, allocations: 15.92 kB / 453.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.3175, allocations: 8 kB / 453.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.3178, allocations: 251.2 kB / 453.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3178, allocations: 7.938 kB / 453.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.3182, allocations: 72 kB / 453.4 MB, free: 14.11 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.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 (18): * Single equations (assignments): 17 * 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.0007327/0.3189, allocations: 0.9307 MB / 454.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.3192, allocations: 147.8 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3192, allocations: 96 / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.3193, allocations: 65.09 kB / 454.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.3201, allocations: 90.09 kB / 454.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.3246, allocations: 3.658 MB / 458.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.3251, allocations: 0.8465 MB / 459.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.3253, allocations: 51.25 kB / 459.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.3256, allocations: 147.4 kB / 459.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3256, allocations: 0 / 459.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.3456, allocations: 6.549 MB / 465.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002746/0.3459, allocations: 188.4 kB / 466 MB, free: 1.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.363, allocations: 4 kB / 466 MB, free: 1.164 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)