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/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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.0005892/0.0005892, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.0007447/0.0007448, allocations: 180.4 kB / 17.57 MB, free: 5.844 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.193/1.193, allocations: 223.2 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1666/0.1666, allocations: 38.09 MB / 330.8 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002732, allocations: 9.281 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08166, allocations: 59.17 MB / 460 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003211/0.08491, allocations: 3.196 MB / 463.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.08634, allocations: 1.263 MB / 464.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.08646, allocations: 11.94 kB / 464.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.08659, allocations: 31.77 kB / 464.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003617/0.08696, allocations: 159.3 kB / 464.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.08719, allocations: 115.7 kB / 464.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003437/0.08755, allocations: 394.8 kB / 465.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.08798, allocations: 254.9 kB / 465.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.08814, allocations: 103.5 kB / 465.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.08829, allocations: 111.5 kB / 465.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.08832, allocations: 8 kB / 465.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003474/0.08867, allocations: 279.3 kB / 465.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.036e-05/0.08874, allocations: 55.8 kB / 465.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.143e-05/0.08884, allocations: 113.2 kB / 466 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.08914, allocations: 299 kB / 466.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.08915, allocations: 0 / 466.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.08916, allocations: 0 / 466.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.08917, allocations: 3.938 kB / 466.3 MB, free: 0.5781 MB / 334.1 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.0004899/0.08966, allocations: 467 kB / 466.8 MB, free: 76 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.0897, allocations: 16.02 kB / 466.8 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.716e-05/0.08976, allocations: 46.73 kB / 466.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006051/0.09037, allocations: 80.83 kB / 466.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.09061, allocations: 252.7 kB / 467.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.09064, allocations: 12.7 kB / 467.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.09068, allocations: 20.31 kB / 467.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.09105, allocations: 279.8 kB / 467.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.09107, allocations: 4 kB / 467.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.0911, allocations: 4 kB / 467.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.09113, allocations: 16.31 kB / 467.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.09145, allocations: 224.3 kB / 467.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.09276, allocations: 1.218 MB / 468.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.09297, allocations: 133.1 kB / 469.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.672e-05/0.09304, allocations: 49.84 kB / 469.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.09307, allocations: 8 kB / 469.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.09309, allocations: 30.56 kB / 469.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.0931, allocations: 0 / 469.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002948/0.0934, allocations: 169.3 kB / 469.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.09345, allocations: 81.11 kB / 469.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.09362, allocations: 206.8 kB / 469.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.09364, allocations: 33.7 kB / 469.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.09373, allocations: 152 kB / 469.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.09377, allocations: 47.44 kB / 469.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.09381, allocations: 21.7 kB / 469.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.035e-05/0.0939, allocations: 326.8 kB / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.882e-05/0.09398, allocations: 43.97 kB / 470.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.09409, allocations: 130.1 kB / 470.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.09428, allocations: 182.5 kB / 470.5 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.09429, allocations: 0 / 470.5 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000262/0.09456, allocations: 209.1 kB / 470.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.09458, allocations: 10.34 kB / 470.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.09459, allocations: 4 kB / 470.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.09461, allocations: 7.938 kB / 470.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.09483, allocations: 43.97 kB / 470.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007574/0.0956, allocations: 1.326 MB / 472.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.09571, allocations: 23.69 kB / 472.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.09573, allocations: 15.92 kB / 472.2 MB, free: 10.23 MB / 350.1 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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.09584, allocations: 146 kB / 472.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.064e-05/0.09589, allocations: 23.73 kB / 472.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002034/0.0961, allocations: 142.9 kB / 472.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.09611, allocations: 3.984 kB / 472.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.09612, allocations: 4 kB / 472.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.09613, allocations: 0 / 472.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005553/0.09668, allocations: 0.4959 MB / 473 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.0967, allocations: 4 kB / 473 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.09686, allocations: 31.98 kB / 473 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.09687, allocations: 0 / 473 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.09689, allocations: 3.984 kB / 473 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006694/0.09757, allocations: 1.325 MB / 474.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.09758, allocations: 0 / 474.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.09786, allocations: 298 kB / 474.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/0.09792, allocations: 104.8 kB / 474.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.09795, allocations: 0 / 474.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.09805, allocations: 7.938 kB / 474.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.09808, allocations: 11.98 kB / 474.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.09809, allocations: 4 kB / 474.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.0982, allocations: 143.2 kB / 474.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09821, allocations: 0 / 474.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000309/0.09852, allocations: 51.92 kB / 474.9 MB, free: 7.191 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004765/0.09901, allocations: 0.8359 MB / 475.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.09929, allocations: 134.3 kB / 475.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.09931, allocations: 0 / 475.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.09945, allocations: 59.84 kB / 476 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.09983, allocations: 32.86 kB / 476 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.102, allocations: 2.457 MB / 478.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.1023, allocations: 0.7478 MB / 479.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.623e-05/0.1024, allocations: 25.53 kB / 479.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.996e-05/0.1024, allocations: 55.41 kB / 479.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1025, allocations: 0 / 479.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5057/0.6081, allocations: 3.461 MB / 482.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.6084, allocations: 245.2 kB / 483 MB, free: 15.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.29, allocations: 10.92 kB / 483 MB, free: 15.05 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/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