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.001275/0.001275, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001361/0.001361, allocations: 200.1 kB / 18 MB, free: 5.168 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1916/0.1916, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 71.88 kB / 457.7 MB, free: 7.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3387, allocations: 58.05 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00499/0.3438, allocations: 3.308 MB / 0.5068 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.3455, allocations: 1.225 MB / 0.508 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.3458, allocations: 10.34 kB / 0.5081 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000722/0.3465, allocations: 154.7 kB / 0.5082 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005386/0.3471, allocations: 170.8 kB / 0.5084 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003788/0.3475, allocations: 132.6 kB / 0.5085 GB, free: 4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000381/0.3479, allocations: 290.2 kB / 0.5088 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.3481, allocations: 123.3 kB / 0.5089 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.3483, allocations: 123.2 kB / 0.509 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.3485, allocations: 109 kB / 0.5091 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.3485, allocations: 14.06 kB / 0.5091 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.3489, allocations: 228.7 kB / 0.5093 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.546e-05/0.349, allocations: 61.56 kB / 0.5094 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.982e-05/0.3491, allocations: 98.31 kB / 0.5095 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.3496, allocations: 286.9 kB / 0.5098 GB, free: 3.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3496, allocations: 1.125 kB / 0.5098 GB, free: 3.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3496, allocations: 4 kB / 0.5098 GB, free: 3.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.3496, allocations: 0 / 0.5098 GB, free: 3.426 MB / 382.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.0005862/0.3502, allocations: 0.5167 MB / 0.5103 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3503, allocations: 14.64 kB / 0.5103 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.3503, allocations: 49.42 kB / 0.5103 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006681/0.351, allocations: 77.5 kB / 0.5104 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.3513, allocations: 268.2 kB / 0.5107 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3513, allocations: 14.92 kB / 0.5107 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.3514, allocations: 16.03 kB / 0.5107 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004019/0.3518, allocations: 274.7 kB / 0.511 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.3518, allocations: 1.312 kB / 0.511 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.3518, allocations: 5.969 kB / 0.511 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.3519, allocations: 13.89 kB / 0.511 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.3522, allocations: 223.6 kB / 0.5112 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.3536, allocations: 1.206 MB / 0.5124 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.3538, allocations: 142.9 kB / 0.5125 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.582e-05/0.3539, allocations: 45.86 kB / 0.5125 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.3539, allocations: 6.156 kB / 0.5126 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.354, allocations: 36.17 kB / 0.5126 GB, free: 1.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.093e-06/0.354, allocations: 0 / 0.5126 GB, free: 1.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.000346/0.3543, allocations: 170.7 kB / 0.5128 GB, free: 1.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.3544, allocations: 84.38 kB / 0.5128 GB, free: 1.066 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.3545, allocations: 209.1 kB / 0.513 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.3545, allocations: 31.08 kB / 0.5131 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.3546, allocations: 151 kB / 0.5132 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.3547, allocations: 46.3 kB / 0.5132 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.068e-05/0.3547, allocations: 43.3 kB / 0.5133 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.805e-05/0.3548, allocations: 328.3 kB / 0.5136 GB, free: 384 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.421e-05/0.3549, allocations: 41.31 kB / 0.5136 GB, free: 372 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.355, allocations: 126 kB / 0.5138 GB, free: 252 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.3551, allocations: 184.4 kB / 0.5139 GB, free: 96 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3552, allocations: 1.188 kB / 0.5139 GB, free: 96 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000302/0.3555, allocations: 204.5 kB / 0.5141 GB, free: 15.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3555, allocations: 6.281 kB / 0.5141 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3555, allocations: 3.047 kB / 0.5141 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3555, allocations: 12.38 kB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3558, allocations: 53.97 kB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.3569, allocations: 1.418 MB / 0.5156 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.3571, allocations: 26.22 kB / 0.5156 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.3571, allocations: 8.203 kB / 0.5156 GB, free: 14.5 MB / 398.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.0001562/0.3573, allocations: 147.3 kB / 0.5158 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.3573, allocations: 17.22 kB / 0.5158 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002529/0.3576, allocations: 139.4 kB / 0.5159 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3576, allocations: 2.219 kB / 0.5159 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.3576, allocations: 5 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3576, allocations: 0.8438 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007403/0.3584, allocations: 499.5 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.3584, allocations: 5.156 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.3586, allocations: 34.75 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.3586, allocations: 1.156 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3586, allocations: 3.016 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.3596, allocations: 1.426 MB / 0.5178 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3596, allocations: 1.531 kB / 0.5178 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.36, allocations: 304.6 kB / 0.5181 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-05/0.3601, allocations: 100.4 kB / 0.5182 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.3601, allocations: 3.203 kB / 0.5182 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3603, allocations: 9.062 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.3603, allocations: 9.938 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.3603, allocations: 4 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001559/0.3605, allocations: 146.9 kB / 0.5184 GB, free: 11.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3605, allocations: 0 / 0.5184 GB, free: 11.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.3608, allocations: 48.22 kB / 0.5184 GB, free: 11.97 MB / 398.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.0006837/0.3615, allocations: 0.8416 MB / 0.5193 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003711/0.3619, allocations: 137.9 kB / 0.5194 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3619, allocations: 96 / 0.5194 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.3621, allocations: 62.22 kB / 0.5194 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3625, allocations: 32.17 kB / 0.5195 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.3656, allocations: 2.351 MB / 0.5218 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.3661, allocations: 0.743 MB / 0.5225 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.3662, allocations: 35.58 kB / 0.5225 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.61e-05/0.3663, allocations: 59.12 kB / 0.5226 GB, free: 8.539 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3663, allocations: 0 / 0.5226 GB, free: 8.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.3955, allocations: 3.808 MB / 0.5263 GB, free: 7.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.32, allocations: 19.42 kB / 0.5263 GB, free: 7.941 MB / 398.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches