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.001256/0.001256, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001215/0.001215, allocations: 192 kB / 18 MB, free: 5.098 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1804/0.1804, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 63.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3442, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00416/0.3484, allocations: 3.309 MB / 0.5068 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.35, allocations: 1.229 MB / 0.508 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.3501, allocations: 8.844 kB / 0.508 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006321/0.3508, allocations: 155.6 kB / 0.5082 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.3512, allocations: 171.4 kB / 0.5084 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.3515, allocations: 133.1 kB / 0.5085 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.3519, allocations: 288.9 kB / 0.5088 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.3522, allocations: 123.6 kB / 0.5089 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.3524, allocations: 116.8 kB / 0.509 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.3526, allocations: 113.7 kB / 0.5091 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.3526, allocations: 14.22 kB / 0.5091 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003949/0.353, allocations: 225.2 kB / 0.5093 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.3531, allocations: 56.62 kB / 0.5094 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.3532, allocations: 106.4 kB / 0.5095 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.3537, allocations: 283.5 kB / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3537, allocations: 0 / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3537, allocations: 1.062 kB / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3537, allocations: 4 kB / 0.5098 GB, free: 3.508 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005818/0.3543, allocations: 0.5154 MB / 0.5103 GB, free: 3.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3544, allocations: 13.12 kB / 0.5103 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.513e-05/0.3544, allocations: 53.25 kB / 0.5103 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007014/0.3551, allocations: 81.86 kB / 0.5104 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.3554, allocations: 264.5 kB / 0.5107 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.3555, allocations: 14.94 kB / 0.5107 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.3555, allocations: 17.91 kB / 0.5107 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.3559, allocations: 270.4 kB / 0.5109 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.356, allocations: 1.094 kB / 0.5109 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.356, allocations: 15.31 kB / 0.511 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.356, allocations: 12.52 kB / 0.511 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.3564, allocations: 219.7 kB / 0.5112 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.3578, allocations: 1.205 MB / 0.5124 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.3581, allocations: 131.5 kB / 0.5125 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.262e-05/0.3581, allocations: 51.52 kB / 0.5125 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3582, allocations: 13.28 kB / 0.5125 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.3582, allocations: 32.41 kB / 0.5126 GB, free: 1.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.3582, allocations: 0 / 0.5126 GB, free: 1.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003492/0.3586, allocations: 166.5 kB / 0.5127 GB, free: 1.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.3586, allocations: 79.39 kB / 0.5128 GB, free: 1.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.3588, allocations: 213.8 kB / 0.513 GB, free: 1.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.3588, allocations: 27.08 kB / 0.513 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.3589, allocations: 159.2 kB / 0.5132 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.3589, allocations: 42.05 kB / 0.5132 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.359, allocations: 46.78 kB / 0.5133 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.881e-05/0.3591, allocations: 325.2 kB / 0.5136 GB, free: 472 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.001e-05/0.3592, allocations: 49.55 kB / 0.5136 GB, free: 452 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.3593, allocations: 121.1 kB / 0.5137 GB, free: 336 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.3595, allocations: 182.3 kB / 0.5139 GB, free: 184 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3595, allocations: 4 kB / 0.5139 GB, free: 180 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002852/0.3598, allocations: 204.5 kB / 0.5141 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3598, allocations: 6.594 kB / 0.5141 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.3598, allocations: 2.922 kB / 0.5141 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.3598, allocations: 8.5 kB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.3601, allocations: 57.16 kB / 0.5142 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.3613, allocations: 1.422 MB / 0.5156 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.3614, allocations: 22.38 kB / 0.5156 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.3615, allocations: 12.05 kB / 0.5156 GB, free: 14.58 MB / 398.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.0001933/0.3617, allocations: 143.7 kB / 0.5158 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.3617, allocations: 16.45 kB / 0.5158 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002482/0.362, allocations: 139.3 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.362, allocations: 2.281 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.362, allocations: 1.562 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.362, allocations: 8.562 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007195/0.3627, allocations: 499.4 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3628, allocations: 1.312 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.3629, allocations: 33.27 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3629, allocations: 1.25 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.363, allocations: 7.312 kB / 0.5164 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.3641, allocations: 1.42 MB / 0.5178 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3641, allocations: 5.406 kB / 0.5178 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.3645, allocations: 312.5 kB / 0.5181 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.558e-05/0.3646, allocations: 95.48 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.3646, allocations: 10.98 kB / 0.5182 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.3648, allocations: 2.156 kB / 0.5182 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.3648, allocations: 16.22 kB / 0.5182 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3648, allocations: 8.25 kB / 0.5182 GB, free: 12.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.365, allocations: 147.6 kB / 0.5184 GB, free: 12.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.365, allocations: 0 / 0.5184 GB, free: 12.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.3654, allocations: 47.95 kB / 0.5184 GB, free: 12.04 MB / 398.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.0006871/0.3661, allocations: 0.8349 MB / 0.5192 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.3664, allocations: 129.9 kB / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3665, allocations: 192 / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.3666, allocations: 61.39 kB / 0.5194 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.3671, allocations: 35.33 kB / 0.5195 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.3703, allocations: 2.351 MB / 0.5218 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3708, allocations: 0.7476 MB / 0.5225 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3709, allocations: 31.06 kB / 0.5225 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3711, allocations: 61.72 kB / 0.5226 GB, free: 8.617 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3711, allocations: 0 / 0.5226 GB, free: 8.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.4013, allocations: 3.804 MB / 0.5263 GB, free: 8.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.58, allocations: 8.984 kB / 0.5263 GB, free: 8.016 MB / 398.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)