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 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.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.0008939/0.0008939, allocations: 85.19 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.0009173/0.0009174, allocations: 176.3 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.249/1.249, allocations: 205.4 MB / 223.7 MB, free: 12.99 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1622/0.1622, allocations: 38.04 MB / 310.1 MB, free: 5.906 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.0004544/0.0004545, allocations: 12 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2025, allocations: 56.32 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004204/0.2067, allocations: 4.962 MB / 438.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.2097, allocations: 2.622 MB / 441.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005046/0.2102, allocations: 19.88 kB / 441.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.2105, allocations: 67.47 kB / 441.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001177/0.2117, allocations: 494.3 kB / 441.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006123/0.2124, allocations: 247.4 kB / 442 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009874/0.2134, allocations: 1.142 MB / 443.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009678/0.2143, allocations: 0.5672 MB / 443.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.2148, allocations: 258.8 kB / 443.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003635/0.2152, allocations: 322.8 kB / 444.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.2152, allocations: 20 kB / 444.3 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.2163, allocations: 0.7638 MB / 445 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2165, allocations: 179.5 kB / 445.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.2166, allocations: 252.5 kB / 445.5 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006611/0.2173, allocations: 0.7864 MB / 446.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2173, allocations: 0 / 446.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2173, allocations: 4 kB / 446.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.2173, allocations: 3.938 kB / 446.3 MB, free: 5.906 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0008204/0.2182, allocations: 0.6787 MB / 446.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2182, allocations: 12.03 kB / 446.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.443e-05/0.2183, allocations: 90.69 kB / 447 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.2197, allocations: 200.1 kB / 447.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2201, allocations: 362.3 kB / 447.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.2202, allocations: 29.38 kB / 447.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.2202, allocations: 44.36 kB / 447.7 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.221, allocations: 0.6342 MB / 448.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.221, allocations: 0 / 448.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.2211, allocations: 16 kB / 448.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-05/0.2211, allocations: 40.97 kB / 448.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00072/0.2219, allocations: 0.6049 MB / 449 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.2242, allocations: 2.273 MB / 451.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004779/0.2247, allocations: 490.3 kB / 451.7 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.225, allocations: 237.7 kB / 451.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.2251, allocations: 4 kB / 451.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.2251, allocations: 38.56 kB / 452 MB, free: 15.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.553e-06/0.2251, allocations: 0 / 452 MB, free: 15.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.00321/0.2283, allocations: 1.712 MB / 453.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.2284, allocations: 88.98 kB / 453.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.2286, allocations: 283.1 kB / 454.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.2287, allocations: 33.7 kB / 454.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2288, allocations: 235.9 kB / 454.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2289, allocations: 145.8 kB / 454.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.229, allocations: 49.69 kB / 454.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.2291, allocations: 342.8 kB / 454.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.2294, allocations: 185 kB / 455 MB, free: 12.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.2297, allocations: 290.4 kB / 455.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006218/0.2303, allocations: 0.5005 MB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2303, allocations: 0 / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001085/0.2314, allocations: 0.681 MB / 456.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.2315, allocations: 8 kB / 456.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.2315, allocations: 0 / 456.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/0.232, allocations: 177 kB / 456.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/0.2324, allocations: 91.83 kB / 456.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.2355, allocations: 2.55 MB / 459.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.2357, allocations: 19.98 kB / 459.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.2358, allocations: 20 kB / 459.3 MB, free: 8.152 MB / 334.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.0002036/0.236, allocations: 193.7 kB / 459.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.386e-05/0.236, allocations: 39.7 kB / 459.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.2372, allocations: 0.6373 MB / 460.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.2372, allocations: 8 kB / 460.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2372, allocations: 0 / 460.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.2372, allocations: 3.984 kB / 460.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/0.2392, allocations: 1.359 MB / 461.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2393, allocations: 4.031 kB / 461.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.2396, allocations: 75.89 kB / 461.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004324/0.24, allocations: 144.7 kB / 461.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.2401, allocations: 11.98 kB / 461.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.2427, allocations: 2.306 MB / 464.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.2427, allocations: 8.031 kB / 464.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.244, allocations: 0.9523 MB / 465.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.2441, allocations: 116.7 kB / 465.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/0.2442, allocations: 8.109 kB / 465.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.2444, allocations: 24.11 kB / 465.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.2445, allocations: 31.95 kB / 465.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.2445, allocations: 19.88 kB / 465.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.2447, allocations: 201.9 kB / 465.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2447, allocations: 0 / 465.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005451/0.2453, allocations: 136 kB / 465.6 MB, free: 1.605 MB / 334.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.001582/0.2468, allocations: 1.497 MB / 467.1 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.248, allocations: 0.662 MB / 467.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.248, allocations: 4.125 kB / 467.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.2486, allocations: 427.5 kB / 468.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.2492, allocations: 60.61 kB / 468.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005673/0.2548, allocations: 4.74 MB / 473 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.2553, allocations: 0.8708 MB / 473.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.2555, allocations: 75.2 kB / 473.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.2557, allocations: 147.4 kB / 474.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2557, allocations: 0 / 474.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.2782, allocations: 9.027 MB / 483.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.2785, allocations: 229.2 kB / 483.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.16, allocations: 4 kB / 483.3 MB, free: 15.61 MB / 366.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)