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.001508/0.001508, allocations: 181.1 kB / 16.39 MB, free: 5.762 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.552/1.552, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008554/0.0008553, allocations: 105.5 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1606/0.1606, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003292, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3537, allocations: 56.32 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.4979, allocations: 94.41 MB / 0.5613 GB, free: 7.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.4983, allocations: 87.95 kB / 0.5613 GB, free: 7.906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02427/0.5225, allocations: 9.84 MB / 0.5709 GB, free: 13.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5226, allocations: 0 / 0.5709 GB, free: 13.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.5226, allocations: 4 kB / 0.571 GB, free: 13.95 MB / 410.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.00069/0.5233, allocations: 495.2 kB / 0.5714 GB, free: 13.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.5233, allocations: 8.031 kB / 0.5714 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006557/0.524, allocations: 99.56 kB / 0.5715 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.5244, allocations: 262.8 kB / 0.5718 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.5244, allocations: 16.31 kB / 0.5718 GB, free: 12.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.5245, allocations: 16 kB / 0.5718 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.5249, allocations: 255.9 kB / 0.5721 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.5249, allocations: 7.906 kB / 0.5721 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.5249, allocations: 11.98 kB / 0.5721 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.214e-05/0.525, allocations: 12.33 kB / 0.5721 GB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.5253, allocations: 204.7 kB / 0.5723 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.5268, allocations: 1.218 MB / 0.5735 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.527, allocations: 121.2 kB / 0.5736 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.5271, allocations: 4.062 kB / 0.5736 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.5271, allocations: 34.56 kB / 0.5736 GB, free: 10.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.5271, allocations: 0 / 0.5736 GB, free: 10.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003576/0.5275, allocations: 153.5 kB / 0.5738 GB, free: 10.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.5275, allocations: 85.11 kB / 0.5738 GB, free: 10.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.5277, allocations: 185.9 kB / 0.574 GB, free: 10.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.5278, allocations: 29.7 kB / 0.5741 GB, free: 10.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.714e-05/0.5279, allocations: 151.8 kB / 0.5742 GB, free: 10.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.5279, allocations: 47.39 kB / 0.5742 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-06/0.5279, allocations: 4.125 kB / 0.5742 GB, free: 10.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.528, allocations: 330.8 kB / 0.5746 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.187e-05/0.5281, allocations: 39.97 kB / 0.5746 GB, free: 9.918 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.5283, allocations: 122.8 kB / 0.5747 GB, free: 9.762 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.835e-05/0.5284, allocations: 64.36 kB / 0.5748 GB, free: 9.699 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5284, allocations: 0 / 0.5748 GB, free: 9.699 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002791/0.5287, allocations: 201.1 kB / 0.575 GB, free: 9.496 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.5287, allocations: 7.953 kB / 0.575 GB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5287, allocations: 4 kB / 0.575 GB, free: 9.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.5287, allocations: 4 kB / 0.575 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.5289, allocations: 47.92 kB / 0.575 GB, free: 9.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.529, allocations: 12.27 kB / 0.575 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.5291, allocations: 27.75 kB / 0.5751 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.5291, allocations: 8 kB / 0.5751 GB, free: 9.387 MB / 410.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 () * Number of clocked 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 0.0001206/0.5292, allocations: 145.7 kB / 0.5752 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.5293, allocations: 15.81 kB / 0.5752 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/0.5295, allocations: 135 kB / 0.5754 GB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.5295, allocations: 3.938 kB / 0.5754 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.5295, allocations: 4 kB / 0.5754 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.5295, allocations: 0 / 0.5754 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006909/0.5302, allocations: 0.5345 MB / 0.5759 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.5303, allocations: 4 kB / 0.5759 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.5304, allocations: 27.98 kB / 0.5759 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.5304, allocations: 4 kB / 0.5759 GB, free: 8.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.5304, allocations: 8.188 kB / 0.5759 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.5305, allocations: 7.938 kB / 0.5759 GB, free: 8.414 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5305, allocations: 0 / 0.5759 GB, free: 8.414 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.531, allocations: 416.2 kB / 0.5763 GB, free: 7.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.277e-05/0.5311, allocations: 96.92 kB / 0.5764 GB, free: 7.816 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.5311, allocations: 8 kB / 0.5764 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.5312, allocations: 4 kB / 0.5764 GB, free: 7.805 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.5313, allocations: 15.94 kB / 0.5765 GB, free: 7.789 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.5313, allocations: 4 kB / 0.5765 GB, free: 7.785 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.5314, allocations: 148.6 kB / 0.5766 GB, free: 7.641 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5314, allocations: 0 / 0.5766 GB, free: 7.641 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003319/0.5318, allocations: 51.84 kB / 0.5766 GB, free: 7.59 MB / 410.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 () * Number of clocked 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.0001663/0.532, allocations: 115.2 kB / 0.5768 GB, free: 7.469 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.5322, allocations: 107.8 kB / 0.5769 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5322, allocations: 0 / 0.5769 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.601e-05/0.5323, allocations: 56.59 kB / 0.5769 GB, free: 7.309 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.5327, allocations: 44.16 kB / 0.577 GB, free: 7.266 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.5337, allocations: 0.6413 MB / 0.5776 GB, free: 6.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.5341, allocations: 0.744 MB / 0.5783 GB, free: 5.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.5342, allocations: 33.52 kB / 0.5783 GB, free: 5.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.926e-05/0.5342, allocations: 15.44 kB / 0.5784 GB, free: 5.754 MB / 410.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5342, allocations: 4 kB / 0.5784 GB, free: 5.75 MB / 410.7 MB Notification: Performance of Templates: time 0.003877/0.5381, allocations: 1.223 MB / 0.5796 GB, free: 4.531 MB / 410.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