Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.2 MB / 219.4 MB, free: 14.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008514/0.0008514, allocations: 86.66 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1688/0.1688, allocations: 37.98 MB / 353.6 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.25e-05, allocations: 4 kB / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0942/0.09423, allocations: 56.31 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4001/0.4943, allocations: 94.33 MB / 0.5551 GB, free: 8.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4947, allocations: 81.7 kB / 0.5551 GB, free: 8.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02172/0.5164, allocations: 9.784 MB / 0.5647 GB, free: 468 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5164, allocations: 4 kB / 0.5647 GB, free: 464 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.5165, allocations: 7.938 kB / 0.5647 GB, free: 456 kB / 362.7 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.0005479/0.517, allocations: 468.5 kB / 0.5652 GB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.5171, allocations: 15.91 kB / 0.5652 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006716/0.5178, allocations: 99.06 kB / 0.5653 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.5182, allocations: 255.8 kB / 0.5655 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.5182, allocations: 19.69 kB / 0.5655 GB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.5182, allocations: 14.56 kB / 0.5655 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.5187, allocations: 256.3 kB / 0.5658 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.5187, allocations: 3.906 kB / 0.5658 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.5187, allocations: 3.25 kB / 0.5658 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.86e-05/0.5188, allocations: 23.88 kB / 0.5658 GB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.5191, allocations: 196.3 kB / 0.566 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.5207, allocations: 1.214 MB / 0.5672 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.5209, allocations: 130.5 kB / 0.5673 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.503e-05/0.5209, allocations: 42.97 kB / 0.5674 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.521, allocations: 3.938 kB / 0.5674 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.521, allocations: 34.56 kB / 0.5674 GB, free: 13.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 2.705e-06/0.521, allocations: 0 / 0.5674 GB, free: 13.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002667/0.5213, allocations: 125.9 kB / 0.5675 GB, free: 13.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.5213, allocations: 81.05 kB / 0.5676 GB, free: 13.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.5215, allocations: 186.5 kB / 0.5678 GB, free: 13.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.5215, allocations: 29.45 kB / 0.5678 GB, free: 13.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.489e-05/0.5216, allocations: 160.2 kB / 0.5679 GB, free: 13.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.5217, allocations: 38.45 kB / 0.568 GB, free: 13.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/0.5217, allocations: 7.5 kB / 0.568 GB, free: 13.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5218, allocations: 325.5 kB / 0.5683 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.406e-05/0.5219, allocations: 41.34 kB / 0.5683 GB, free: 12.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.522, allocations: 118.2 kB / 0.5685 GB, free: 12.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.844e-05/0.5221, allocations: 61.3 kB / 0.5685 GB, free: 12.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5221, allocations: 0 / 0.5685 GB, free: 12.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002823/0.5224, allocations: 198.3 kB / 0.5687 GB, free: 12.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.5224, allocations: 7.984 kB / 0.5687 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.5225, allocations: 4 kB / 0.5687 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.5225, allocations: 7.938 kB / 0.5687 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.5227, allocations: 47.92 kB / 0.5688 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.5227, allocations: 4.344 kB / 0.5688 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.5228, allocations: 30.62 kB / 0.5688 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.5228, allocations: 10.98 kB / 0.5688 GB, free: 12.43 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/0.5229, allocations: 115.1 kB / 0.5689 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.523, allocations: 19.77 kB / 0.5689 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.5232, allocations: 129.4 kB / 0.5691 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.5232, allocations: 4 kB / 0.5691 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.5232, allocations: 3.938 kB / 0.5691 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5233, allocations: 0 / 0.5691 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007192/0.524, allocations: 0.5347 MB / 0.5696 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.524, allocations: 4 kB / 0.5696 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.5242, allocations: 31.92 kB / 0.5696 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.5242, allocations: 0 / 0.5696 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.5242, allocations: 11.5 kB / 0.5696 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.5242, allocations: 7.938 kB / 0.5696 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5242, allocations: 0 / 0.5696 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.5247, allocations: 404.8 kB / 0.57 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.125e-05/0.5248, allocations: 100.5 kB / 0.5701 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.5248, allocations: 4 kB / 0.5701 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.5249, allocations: 7.5 kB / 0.5701 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.5249, allocations: 15.88 kB / 0.5702 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.5249, allocations: 7.5 kB / 0.5702 GB, free: 11.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001423/0.5251, allocations: 145.2 kB / 0.5703 GB, free: 10.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5251, allocations: 0 / 0.5703 GB, free: 10.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003437/0.5255, allocations: 54.53 kB / 0.5703 GB, free: 10.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.5256, allocations: 114.8 kB / 0.5705 GB, free: 10.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.5258, allocations: 117.7 kB / 0.5706 GB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5258, allocations: 0 / 0.5706 GB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.466e-05/0.5259, allocations: 50.98 kB / 0.5706 GB, free: 10.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.5262, allocations: 38.84 kB / 0.5707 GB, free: 10.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006948/0.5269, allocations: 405.7 kB / 0.571 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.5273, allocations: 0.7472 MB / 0.5718 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.5274, allocations: 33.5 kB / 0.5718 GB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.5274, allocations: 19.38 kB / 0.5718 GB, free: 9.355 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5274, allocations: 0 / 0.5718 GB, free: 9.355 MB / 378.7 MB Notification: Performance of Templates: time 0.00367/0.5311, allocations: 1.236 MB / 0.573 GB, free: 8.133 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches