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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001372/0.001372, allocations: 178.6 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.579/1.579, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001683/0.001683, allocations: 118.3 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1652/0.1652, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.416e-05, allocations: 7.938 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3003, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.4405, allocations: 92.15 MB / 0.5233 GB, free: 5.391 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.4409, allocations: 83.95 kB / 0.5234 GB, free: 5.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3757/0.8167, allocations: 23.77 MB / 0.5466 GB, free: 82.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.8167, allocations: 0 / 0.5466 GB, free: 82.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.8168, allocations: 12 kB / 0.5466 GB, free: 82.33 MB / 378.7 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.001144/0.8179, allocations: 0.6714 MB / 0.5472 GB, free: 81.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/0.818, allocations: 8.031 kB / 0.5472 GB, free: 81.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.8197, allocations: 211.2 kB / 0.5474 GB, free: 81.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.8203, allocations: 376.3 kB / 0.5478 GB, free: 81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.8203, allocations: 16 kB / 0.5478 GB, free: 80.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.383e-05/0.8204, allocations: 35.86 kB / 0.5478 GB, free: 80.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006154/0.821, allocations: 426.4 kB / 0.5483 GB, free: 80.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007184/0.8218, allocations: 0.5503 MB / 0.5488 GB, free: 79.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.8218, allocations: 7.984 kB / 0.5488 GB, free: 79.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.8218, allocations: 0 / 0.5488 GB, free: 79.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.822, allocations: 49.27 kB / 0.5488 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002818/0.8248, allocations: 2.204 MB / 0.551 GB, free: 77.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/0.8254, allocations: 482.6 kB / 0.5515 GB, free: 77.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.8258, allocations: 225.7 kB / 0.5517 GB, free: 76.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.477e-05/0.8258, allocations: 4 kB / 0.5517 GB, free: 76.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.8259, allocations: 42.55 kB / 0.5517 GB, free: 76.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.745e-06/0.8259, allocations: 4 kB / 0.5517 GB, free: 76.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.001995/0.8279, allocations: 1.21 MB / 0.5529 GB, free: 75.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.8279, allocations: 93.05 kB / 0.553 GB, free: 75.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.8281, allocations: 202.1 kB / 0.5532 GB, free: 75.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.8282, allocations: 29.73 kB / 0.5532 GB, free: 75.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.8283, allocations: 231.8 kB / 0.5534 GB, free: 74.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.8284, allocations: 149.8 kB / 0.5536 GB, free: 74.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.8284, allocations: 0 / 0.5536 GB, free: 74.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.167e-05/0.8285, allocations: 342.8 kB / 0.5539 GB, free: 74.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.8287, allocations: 173 kB / 0.5541 GB, free: 74.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.829, allocations: 281.7 kB / 0.5543 GB, free: 73.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.8293, allocations: 213.9 kB / 0.5545 GB, free: 73.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.8293, allocations: 0 / 0.5545 GB, free: 73.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009292/0.8302, allocations: 0.6228 MB / 0.5552 GB, free: 73.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.8303, allocations: 8 kB / 0.5552 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.8303, allocations: 4 kB / 0.5552 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.8308, allocations: 156.5 kB / 0.5553 GB, free: 72.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.8312, allocations: 103.8 kB / 0.5554 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.8337, allocations: 2.376 MB / 0.5577 GB, free: 70.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.834, allocations: 20.02 kB / 0.5577 GB, free: 70.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.834, allocations: 20 kB / 0.5578 GB, free: 70.34 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001704/0.8342, allocations: 132.1 kB / 0.5579 GB, free: 70.21 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008739/0.8351, allocations: 0.5445 MB / 0.5584 GB, free: 69.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.8351, allocations: 39.56 kB / 0.5585 GB, free: 69.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009737/0.8361, allocations: 0.5941 MB / 0.559 GB, free: 69.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.8361, allocations: 8 kB / 0.5591 GB, free: 69.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.8361, allocations: 0 / 0.5591 GB, free: 69.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.8362, allocations: 7.922 kB / 0.5591 GB, free: 69 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.838, allocations: 1.283 MB / 0.5603 GB, free: 67.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.8381, allocations: 12.05 kB / 0.5603 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.8384, allocations: 87.83 kB / 0.5604 GB, free: 67.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003853/0.8388, allocations: 124.9 kB / 0.5605 GB, free: 67.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.8389, allocations: 7.922 kB / 0.5605 GB, free: 67.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.8409, allocations: 2.208 MB / 0.5627 GB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.8409, allocations: 0 / 0.5627 GB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.8421, allocations: 0.9665 MB / 0.5636 GB, free: 64.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/0.8422, allocations: 108.7 kB / 0.5637 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.8422, allocations: 4.094 kB / 0.5637 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.8424, allocations: 12.03 kB / 0.5638 GB, free: 63.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.8425, allocations: 43.88 kB / 0.5638 GB, free: 63.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.8425, allocations: 8 kB / 0.5638 GB, free: 63.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000126/0.8427, allocations: 162 kB / 0.564 GB, free: 63.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8427, allocations: 0 / 0.564 GB, free: 63.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007055/0.8434, allocations: 140 kB / 0.5641 GB, free: 63.61 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001498/0.8449, allocations: 1.71 MB / 0.5658 GB, free: 61.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.846, allocations: 0.6492 MB / 0.5664 GB, free: 61.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.846, allocations: 0 / 0.5664 GB, free: 61.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.8466, allocations: 414.7 kB / 0.5668 GB, free: 60.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.847, allocations: 46.38 kB / 0.5668 GB, free: 60.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.8487, allocations: 1.013 MB / 0.5678 GB, free: 59.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.849, allocations: 0.8866 MB / 0.5687 GB, free: 58.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.8492, allocations: 71.22 kB / 0.5688 GB, free: 58.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.8494, allocations: 147.4 kB / 0.5689 GB, free: 58.55 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.8494, allocations: 0 / 0.5689 GB, free: 58.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.8779, allocations: 8.292 MB / 0.577 GB, free: 50.26 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.8782, allocations: 142.6 kB / 0.5771 GB, free: 50.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/3.038, allocations: 4 kB / 0.5771 GB, free: 50.05 MB / 378.7 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/linux/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)