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.00148/0.00148, allocations: 110.6 kB / 17.06 MB, free: 5.941 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.00173/0.00173, allocations: 200 kB / 18.01 MB, free: 5.031 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1714/0.1714, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 59.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3196, allocations: 58.05 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005478/0.3251, allocations: 4.925 MB / 0.5084 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002859/0.328, allocations: 2.478 MB / 0.5108 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002175/0.3282, allocations: 13.22 kB / 0.5109 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.3293, allocations: 438.5 kB / 0.5113 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009745/0.3303, allocations: 0.5143 MB / 0.5118 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000603/0.3309, allocations: 283.1 kB / 0.512 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007222/0.3316, allocations: 0.7463 MB / 0.5128 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004512/0.3321, allocations: 337 kB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/0.3324, allocations: 327.6 kB / 0.5134 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003828/0.3328, allocations: 320.1 kB / 0.5137 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.744e-05/0.3329, allocations: 36.44 kB / 0.5137 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009153/0.3338, allocations: 0.6371 MB / 0.5144 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.334, allocations: 195.8 kB / 0.5146 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.3342, allocations: 256.6 kB / 0.5148 GB, free: 368 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009389/0.3352, allocations: 0.7597 MB / 0.5155 GB, free: 88 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3352, allocations: 0 / 0.5155 GB, free: 88 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3352, allocations: 0 / 0.5155 GB, free: 88 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3352, allocations: 1.406 kB / 0.5155 GB, free: 88 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.001139/0.3364, allocations: 0.7858 MB / 0.5163 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3364, allocations: 14.67 kB / 0.5163 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.636e-05/0.3365, allocations: 88.83 kB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/0.3383, allocations: 206.5 kB / 0.5166 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005873/0.3389, allocations: 371.3 kB / 0.517 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.3389, allocations: 34.05 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-05/0.339, allocations: 48.94 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3402, allocations: 0.6212 MB / 0.5176 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3402, allocations: 6.312 kB / 0.5177 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.371e-05/0.3403, allocations: 16.12 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.595e-05/0.3403, allocations: 32.69 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009788/0.3413, allocations: 0.6104 MB / 0.5183 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003246/0.3446, allocations: 2.252 MB / 0.5205 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/0.3452, allocations: 0.4896 MB / 0.521 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.3456, allocations: 234.5 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.3456, allocations: 5.922 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3456, allocations: 45 kB / 0.5212 GB, free: 12.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.3456, allocations: 0.9375 kB / 0.5212 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003433/0.3491, allocations: 1.718 MB / 0.5229 GB, free: 11.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.3491, allocations: 81.23 kB / 0.523 GB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.3494, allocations: 281.1 kB / 0.5233 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.3495, allocations: 35.2 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.3496, allocations: 236.9 kB / 0.5235 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.3497, allocations: 158.2 kB / 0.5237 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.3499, allocations: 81.8 kB / 0.5238 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.35, allocations: 351.2 kB / 0.5241 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.3503, allocations: 175.4 kB / 0.5243 GB, free: 10.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.3506, allocations: 295.8 kB / 0.5245 GB, free: 10.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006912/0.3513, allocations: 0.509 MB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3514, allocations: 0 / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001184/0.3525, allocations: 0.6766 MB / 0.5257 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3526, allocations: 6.375 kB / 0.5257 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3526, allocations: 8.469 kB / 0.5257 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005806/0.3532, allocations: 175.5 kB / 0.5259 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.3536, allocations: 94.78 kB / 0.526 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.3571, allocations: 2.789 MB / 0.5287 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.3573, allocations: 23.02 kB / 0.5287 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.3574, allocations: 21.02 kB / 0.5287 GB, free: 7.867 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.0002318/0.3576, allocations: 196.7 kB / 0.5289 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.691e-05/0.3577, allocations: 41.36 kB / 0.529 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.359, allocations: 0.6335 MB / 0.5296 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.359, allocations: 6.516 kB / 0.5296 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.359, allocations: 3.938 kB / 0.5296 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.359, allocations: 4.281 kB / 0.5296 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3612, allocations: 1.343 MB / 0.5309 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.3612, allocations: 2.578 kB / 0.5309 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.3616, allocations: 80.16 kB / 0.531 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004537/0.3621, allocations: 146.2 kB / 0.5311 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.3621, allocations: 13.02 kB / 0.5311 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002999/0.3651, allocations: 2.571 MB / 0.5336 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.3651, allocations: 4.953 kB / 0.5337 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3665, allocations: 0.9631 MB / 0.5346 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3667, allocations: 112.2 kB / 0.5347 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.406e-05/0.3667, allocations: 14.22 kB / 0.5347 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.367, allocations: 13.62 kB / 0.5347 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.106e-05/0.367, allocations: 35.11 kB / 0.5348 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.3671, allocations: 14.97 kB / 0.5348 GB, free: 3.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.3673, allocations: 199.3 kB / 0.535 GB, free: 3.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.3673, allocations: 0 / 0.535 GB, free: 3.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006448/0.3679, allocations: 143.1 kB / 0.5351 GB, free: 3.73 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.001669/0.3696, allocations: 1.497 MB / 0.5366 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.3708, allocations: 0.6673 MB / 0.5372 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3709, allocations: 0.875 kB / 0.5372 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006993/0.3716, allocations: 434.1 kB / 0.5376 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004949/0.3721, allocations: 67.39 kB / 0.5377 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006031/0.3781, allocations: 4.471 MB / 0.5421 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005224/0.3786, allocations: 0.875 MB / 0.5429 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.3789, allocations: 73.5 kB / 0.543 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.3791, allocations: 146.2 kB / 0.5431 GB, free: 13.85 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3791, allocations: 0 / 0.5431 GB, free: 13.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.4134, allocations: 9.899 MB / 0.5528 GB, free: 5.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 7.5 kB / 0.5528 GB, free: 5.27 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