Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001247/0.001247, allocations: 109 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.001254/0.001254, allocations: 189.4 kB / 18 MB, free: 5.102 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.372/1.372, 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.1767/0.1767, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 71.89 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3424, allocations: 58.06 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005213/0.3477, allocations: 4.919 MB / 0.5084 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003021/0.3508, allocations: 2.481 MB / 0.5108 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000257/0.351, allocations: 13.62 kB / 0.5108 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3522, allocations: 438.2 kB / 0.5113 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.3533, allocations: 0.5053 MB / 0.5118 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006746/0.3539, allocations: 282.2 kB / 0.512 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007201/0.3547, allocations: 0.7448 MB / 0.5128 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.3552, allocations: 335 kB / 0.5131 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.3556, allocations: 313.9 kB / 0.5134 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005115/0.3561, allocations: 325.7 kB / 0.5137 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.3562, allocations: 36 kB / 0.5137 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.3573, allocations: 0.637 MB / 0.5143 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000202/0.3575, allocations: 195.4 kB / 0.5145 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.3577, allocations: 247.8 kB / 0.5148 GB, free: 480 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.3587, allocations: 0.7643 MB / 0.5155 GB, free: 196 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3588, allocations: 0 / 0.5155 GB, free: 196 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3588, allocations: 1.531 kB / 0.5155 GB, free: 196 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3588, allocations: 0 / 0.5155 GB, free: 196 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001189/0.36, allocations: 0.786 MB / 0.5163 GB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.36, allocations: 17.23 kB / 0.5163 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.3601, allocations: 81.55 kB / 0.5164 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001729/0.3619, allocations: 203.5 kB / 0.5166 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006463/0.3625, allocations: 375.5 kB / 0.5169 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.3626, allocations: 33.33 kB / 0.517 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.545e-05/0.3627, allocations: 44.77 kB / 0.517 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.364, allocations: 0.6217 MB / 0.5176 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.364, allocations: 6.062 kB / 0.5176 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.3641, allocations: 20.36 kB / 0.5176 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.349e-05/0.3642, allocations: 40.81 kB / 0.5177 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3653, allocations: 0.611 MB / 0.5183 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00355/0.3688, allocations: 2.244 MB / 0.5205 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006853/0.3695, allocations: 499.6 kB / 0.5209 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003556/0.3699, allocations: 236.2 kB / 0.5212 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.3699, allocations: 8.859 kB / 0.5212 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.37, allocations: 45.92 kB / 0.5212 GB, free: 12.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.37, allocations: 0 / 0.5212 GB, free: 12.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003681/0.3737, allocations: 1.715 MB / 0.5229 GB, free: 11.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.3738, allocations: 85.17 kB / 0.523 GB, free: 11.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.3741, allocations: 288.5 kB / 0.5232 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.3741, allocations: 31.08 kB / 0.5233 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.3743, allocations: 232.7 kB / 0.5235 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3745, allocations: 161.8 kB / 0.5237 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.3746, allocations: 82.19 kB / 0.5237 GB, free: 11.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3748, allocations: 351.7 kB / 0.5241 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.3751, allocations: 175.4 kB / 0.5242 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.3755, allocations: 292.1 kB / 0.5245 GB, free: 10.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.3762, allocations: 0.5039 MB / 0.525 GB, free: 10.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3762, allocations: 4.969 kB / 0.525 GB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001321/0.3775, allocations: 0.6765 MB / 0.5257 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3775, allocations: 6.75 kB / 0.5257 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3775, allocations: 4.406 kB / 0.5257 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006004/0.3781, allocations: 180.8 kB / 0.5259 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.3785, allocations: 98.16 kB / 0.5259 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003839/0.3824, allocations: 2.793 MB / 0.5287 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.3827, allocations: 21.52 kB / 0.5287 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.3828, allocations: 20.97 kB / 0.5287 GB, free: 7.969 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003032/0.3831, allocations: 196.2 kB / 0.5289 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-05/0.3832, allocations: 45.47 kB / 0.5289 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3844, allocations: 0.6275 MB / 0.5296 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3844, allocations: 5.406 kB / 0.5296 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3844, allocations: 4.594 kB / 0.5296 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3845, allocations: 2.391 kB / 0.5296 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.3868, allocations: 1.356 MB / 0.5309 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3868, allocations: 5.562 kB / 0.5309 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.3871, allocations: 81.25 kB / 0.531 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004683/0.3876, allocations: 137.3 kB / 0.5311 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.487e-05/0.3877, allocations: 16.62 kB / 0.5311 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/0.391, allocations: 2.558 MB / 0.5336 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.391, allocations: 7.922 kB / 0.5336 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.3926, allocations: 0.9552 MB / 0.5346 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.3928, allocations: 116.4 kB / 0.5347 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.3928, allocations: 19.09 kB / 0.5347 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.3931, allocations: 13.62 kB / 0.5347 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.3931, allocations: 35.22 kB / 0.5347 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.3932, allocations: 18.52 kB / 0.5348 GB, free: 3.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.3934, allocations: 195.4 kB / 0.5349 GB, free: 3.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3934, allocations: 0 / 0.5349 GB, free: 3.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007021/0.3941, allocations: 135.8 kB / 0.5351 GB, free: 3.762 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001863/0.396, allocations: 1.503 MB / 0.5365 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.3975, allocations: 0.6692 MB / 0.5372 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3975, allocations: 4.312 kB / 0.5372 GB, free: 2.266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000767/0.3983, allocations: 422.5 kB / 0.5376 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005724/0.3989, allocations: 64.03 kB / 0.5377 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007215/0.4061, allocations: 4.481 MB / 0.542 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006617/0.4068, allocations: 0.871 MB / 0.5429 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002228/0.407, allocations: 73.72 kB / 0.543 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002524/0.4073, allocations: 145.4 kB / 0.5431 GB, free: 13.87 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4073, allocations: 0 / 0.5431 GB, free: 13.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04007/0.4474, allocations: 9.88 MB / 0.5527 GB, free: 5.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.91, allocations: 4 kB / 0.5527 GB, free: 5.305 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)