Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001564/0.001564, allocations: 111.9 kB / 17.06 MB, free: 6.012 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.001549/0.001549, allocations: 195.9 kB / 18 MB, free: 5.094 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.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1832/0.1832, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.362, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005529/0.3676, allocations: 4.915 MB / 0.5084 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.3708, allocations: 2.487 MB / 0.5108 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003311/0.3712, allocations: 14.16 kB / 0.5109 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.3724, allocations: 441 kB / 0.5113 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.3736, allocations: 0.5049 MB / 0.5118 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007661/0.3744, allocations: 286 kB / 0.512 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.3755, allocations: 0.742 MB / 0.5128 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005355/0.376, allocations: 334.8 kB / 0.5131 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.3766, allocations: 312.9 kB / 0.5134 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004407/0.377, allocations: 326.6 kB / 0.5137 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-05/0.3771, allocations: 36.56 kB / 0.5137 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.3784, allocations: 0.6355 MB / 0.5144 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002597/0.3787, allocations: 194.8 kB / 0.5145 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.379, allocations: 257.7 kB / 0.5148 GB, free: 396 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.3804, allocations: 0.7588 MB / 0.5155 GB, free: 116 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3804, allocations: 1.156 kB / 0.5155 GB, free: 116 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3804, allocations: 0.7031 kB / 0.5155 GB, free: 116 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3804, allocations: 0 / 0.5155 GB, free: 116 kB / 382.1 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.001501/0.382, allocations: 0.7931 MB / 0.5163 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.382, allocations: 13.58 kB / 0.5163 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.3822, allocations: 82.69 kB / 0.5164 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001847/0.384, allocations: 205.5 kB / 0.5166 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000722/0.3848, allocations: 374.6 kB / 0.5169 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.3848, allocations: 30.81 kB / 0.517 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3849, allocations: 47.47 kB / 0.517 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.3863, allocations: 0.627 MB / 0.5176 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.3864, allocations: 1.688 kB / 0.5176 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.3865, allocations: 16.28 kB / 0.5177 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.163e-05/0.3865, allocations: 36.88 kB / 0.5177 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.3878, allocations: 0.6104 MB / 0.5183 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/0.3919, allocations: 2.252 MB / 0.5205 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.3928, allocations: 493.6 kB / 0.521 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003635/0.3931, allocations: 234.7 kB / 0.5212 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.3932, allocations: 6.156 kB / 0.5212 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.3932, allocations: 41.47 kB / 0.5212 GB, free: 12.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.115e-06/0.3932, allocations: 0 / 0.5212 GB, free: 12.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.00412/0.3974, allocations: 1.718 MB / 0.5229 GB, free: 11.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/0.3975, allocations: 82.16 kB / 0.523 GB, free: 11.72 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.3979, allocations: 280.3 kB / 0.5232 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.3979, allocations: 35.17 kB / 0.5233 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.3981, allocations: 237.3 kB / 0.5235 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.3983, allocations: 161.5 kB / 0.5237 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3984, allocations: 81.83 kB / 0.5237 GB, free: 11.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3986, allocations: 351.6 kB / 0.5241 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.399, allocations: 175.6 kB / 0.5242 GB, free: 10.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003938/0.3994, allocations: 298.6 kB / 0.5245 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007683/0.4001, allocations: 0.5043 MB / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4001, allocations: 1.344 kB / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001294/0.4014, allocations: 0.6801 MB / 0.5257 GB, free: 9.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.4015, allocations: 8.281 kB / 0.5257 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4015, allocations: 2.625 kB / 0.5257 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.4021, allocations: 180.6 kB / 0.5259 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.4025, allocations: 93.98 kB / 0.526 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.4067, allocations: 2.788 MB / 0.5287 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.4072, allocations: 20.64 kB / 0.5287 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.4073, allocations: 21.12 kB / 0.5287 GB, free: 7.902 MB / 398.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.4076, allocations: 195.5 kB / 0.5289 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.923e-05/0.4077, allocations: 42.17 kB / 0.5289 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.409, allocations: 0.6342 MB / 0.5296 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.409, allocations: 4.875 kB / 0.5296 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.409, allocations: 5.656 kB / 0.5296 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4091, allocations: 2.766 kB / 0.5296 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.4115, allocations: 1.348 MB / 0.5309 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4115, allocations: 1.25 kB / 0.5309 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.4119, allocations: 80.06 kB / 0.531 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.4124, allocations: 143.4 kB / 0.5311 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/0.4124, allocations: 13.64 kB / 0.5311 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/0.4159, allocations: 2.579 MB / 0.5336 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4159, allocations: 1.469 kB / 0.5336 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.4175, allocations: 0.954 MB / 0.5346 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.4177, allocations: 116.8 kB / 0.5347 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.4178, allocations: 15.31 kB / 0.5347 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.418, allocations: 13.28 kB / 0.5347 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.4181, allocations: 38.2 kB / 0.5347 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.4181, allocations: 18.7 kB / 0.5348 GB, free: 3.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002479/0.4184, allocations: 195.3 kB / 0.535 GB, free: 3.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4184, allocations: 0 / 0.535 GB, free: 3.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007655/0.4192, allocations: 135.9 kB / 0.5351 GB, free: 3.719 MB / 398.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001922/0.4211, allocations: 1.5 MB / 0.5365 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.4226, allocations: 0.6684 MB / 0.5372 GB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4226, allocations: 0.875 kB / 0.5372 GB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009366/0.4235, allocations: 429.8 kB / 0.5376 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006695/0.4242, allocations: 69.64 kB / 0.5377 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006999/0.4312, allocations: 4.483 MB / 0.5421 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.4319, allocations: 0.8756 MB / 0.5429 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002889/0.4322, allocations: 68.58 kB / 0.543 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.4325, allocations: 145.6 kB / 0.5431 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4325, allocations: 1.188 kB / 0.5431 GB, free: 13.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04428/0.4768, allocations: 9.889 MB / 0.5528 GB, free: 5.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.66, allocations: 3.938 kB / 0.5528 GB, free: 5.312 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches