Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001258/0.001258, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001453/0.001453, allocations: 190 kB / 17.54 MB, free: 6.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.26/1.26, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1641/0.1641, allocations: 38.02 MB / 329.4 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 67.98 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0855/0.08663, allocations: 58.07 MB / 456.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003952/0.09061, allocations: 3.544 MB / 460 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.092, allocations: 1.278 MB / 461.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.906e-05/0.09211, allocations: 11.94 kB / 461.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004252/0.09255, allocations: 159.4 kB / 461.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.09284, allocations: 151.4 kB / 461.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.09306, allocations: 119.7 kB / 461.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.09333, allocations: 291 kB / 462 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.09356, allocations: 130.2 kB / 462.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.09371, allocations: 119.4 kB / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.09385, allocations: 115.5 kB / 462.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.09387, allocations: 12 kB / 462.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.09414, allocations: 227.4 kB / 462.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.0942, allocations: 67.8 kB / 462.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.817e-05/0.09429, allocations: 95.48 kB / 462.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.09458, allocations: 307 kB / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.09459, allocations: 0 / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.0946, allocations: 0 / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.09461, allocations: 0 / 463 MB, free: 1.695 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004706/0.09509, allocations: 0.4989 MB / 463.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.777e-05/0.09512, allocations: 15.89 kB / 463.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.885e-05/0.09516, allocations: 46.73 kB / 463.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/0.09574, allocations: 80.61 kB / 463.7 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.09598, allocations: 260.6 kB / 463.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.096, allocations: 12.7 kB / 463.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.09604, allocations: 20.38 kB / 464 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.09639, allocations: 271.8 kB / 464.2 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.09641, allocations: 7.938 kB / 464.2 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.09644, allocations: 11.92 kB / 464.2 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.09646, allocations: 12.33 kB / 464.3 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.09676, allocations: 224 kB / 464.5 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.09801, allocations: 1.206 MB / 465.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.0982, allocations: 137.2 kB / 465.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/0.09827, allocations: 45.77 kB / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.09829, allocations: 0 / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.09831, allocations: 38.56 kB / 465.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.09832, allocations: 0 / 465.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002806/0.0986, allocations: 173.5 kB / 466.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.09864, allocations: 81.11 kB / 466.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.09881, allocations: 206.8 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.09883, allocations: 29.7 kB / 466.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.194e-05/0.0989, allocations: 151.9 kB / 466.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.09894, allocations: 39.45 kB / 466.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.099, allocations: 49.77 kB / 466.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.09909, allocations: 330.8 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.563e-05/0.09916, allocations: 39.98 kB / 467 MB, free: 13.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.09927, allocations: 129 kB / 467.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.09946, allocations: 186 kB / 467.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.09947, allocations: 0 / 467.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002667/0.09974, allocations: 213.3 kB / 467.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.09976, allocations: 8 kB / 467.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.09977, allocations: 4 kB / 467.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.09979, allocations: 7.938 kB / 467.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1, allocations: 47.91 kB / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007612/0.1008, allocations: 1.412 MB / 469 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1009, allocations: 27.77 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.1009, allocations: 8 kB / 469 MB, free: 11.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.101, allocations: 149.8 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.1011, allocations: 19.8 kB / 469.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001971/0.1013, allocations: 138.9 kB / 469.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1013, allocations: 4 kB / 469.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.1013, allocations: 0 / 469.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1013, allocations: 3.938 kB / 469.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005405/0.1018, allocations: 500 kB / 469.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1018, allocations: 0 / 469.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.102, allocations: 31.98 kB / 469.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.102, allocations: 0 / 469.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.102, allocations: 4 kB / 469.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006953/0.1027, allocations: 1.428 MB / 471.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1028, allocations: 4.031 kB / 471.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.103, allocations: 316.7 kB / 471.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.1031, allocations: 88.92 kB / 471.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.1031, allocations: 8 kB / 471.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.066e-05/0.1032, allocations: 0 / 471.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/0.1033, allocations: 16.05 kB / 471.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.1033, allocations: 4 kB / 471.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1034, allocations: 159.1 kB / 471.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1034, allocations: 0 / 471.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1037, allocations: 47.84 kB / 471.9 MB, free: 8.043 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004616/0.1042, allocations: 0.8319 MB / 472.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002646/0.1044, allocations: 131.8 kB / 472.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1044, allocations: 0.75 kB / 472.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.1046, allocations: 63.97 kB / 472.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1049, allocations: 30.36 kB / 473 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.1072, allocations: 2.415 MB / 475.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.1075, allocations: 0.7398 MB / 476.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.221e-05/0.1075, allocations: 25.53 kB / 476.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.1076, allocations: 63.41 kB / 476.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1076, allocations: 4 kB / 476.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.842/2.95, allocations: 3.616 MB / 479.8 MB, free: 40 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/2.95, allocations: 231.8 kB / 480 MB, free: 15.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/4.791, allocations: 0 / 480 MB, free: 15.78 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)