Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001469/0.001469, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001688/0.001689, allocations: 200 kB / 18.01 MB, free: 5.066 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.341/1.341, 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.1993/0.1993, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3788, allocations: 58.06 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006842/0.3856, allocations: 6.102 MB / 0.5096 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.3884, allocations: 1.942 MB / 0.5115 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.3887, allocations: 22.41 kB / 0.5115 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.3903, allocations: 0.7031 MB / 0.5122 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009969/0.3913, allocations: 374.1 kB / 0.5125 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.3926, allocations: 401.7 kB / 0.5129 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.3939, allocations: 0.9418 MB / 0.5138 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006805/0.3946, allocations: 0.5032 MB / 0.5143 GB, free: 468 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.3951, allocations: 431.4 kB / 0.5147 GB, free: 276 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.3958, allocations: 0.5282 MB / 0.5152 GB, free: 76 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.3959, allocations: 65.75 kB / 0.5153 GB, free: 68 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004368/0.3964, allocations: 234.3 kB / 0.5155 GB, free: 8 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004424/0.3968, allocations: 412.9 kB / 0.5159 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004875/0.3973, allocations: 427.8 kB / 0.5163 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.3987, allocations: 1.024 MB / 0.5173 GB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3987, allocations: 0 / 0.5173 GB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3987, allocations: 0.5312 kB / 0.5173 GB, free: 15.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.3988, allocations: 0.5312 kB / 0.5173 GB, free: 15.25 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001947/0.4007, allocations: 1.086 MB / 0.5184 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.4008, allocations: 13.2 kB / 0.5184 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000194/0.401, allocations: 134.8 kB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007817/0.4018, allocations: 140.4 kB / 0.5187 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000991/0.4028, allocations: 0.5512 MB / 0.5192 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.4028, allocations: 56.69 kB / 0.5193 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.403, allocations: 86.16 kB / 0.5193 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.4047, allocations: 1.127 MB / 0.5204 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/0.4047, allocations: 6.375 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.295e-05/0.4048, allocations: 41.92 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.492e-05/0.4049, allocations: 52.39 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.4064, allocations: 0.8626 MB / 0.5214 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/0.4124, allocations: 5.056 MB / 0.5263 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008102/0.4132, allocations: 419 kB / 0.5267 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/0.4136, allocations: 210.4 kB / 0.5269 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.4136, allocations: 11.05 kB / 0.5269 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.4137, allocations: 41.64 kB / 0.527 GB, free: 8.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.4137, allocations: 0.9688 kB / 0.527 GB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002124/0.4158, allocations: 1.081 MB / 0.528 GB, free: 8.309 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.4159, allocations: 82.52 kB / 0.5281 GB, free: 8.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000607/0.4165, allocations: 0.4959 MB / 0.5286 GB, free: 7.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.4166, allocations: 36.72 kB / 0.5286 GB, free: 7.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003476/0.4169, allocations: 471.9 kB / 0.5291 GB, free: 7.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.4171, allocations: 167.7 kB / 0.5292 GB, free: 7.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.4173, allocations: 155.6 kB / 0.5294 GB, free: 7.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.4175, allocations: 370.8 kB / 0.5297 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/0.4178, allocations: 237.4 kB / 0.53 GB, free: 6.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006374/0.4185, allocations: 0.6168 MB / 0.5306 GB, free: 6.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.4196, allocations: 0.9361 MB / 0.5315 GB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.4196, allocations: 3.344 kB / 0.5315 GB, free: 5.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001414/0.421, allocations: 0.9032 MB / 0.5324 GB, free: 5.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.4211, allocations: 11.55 kB / 0.5324 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.4211, allocations: 12.94 kB / 0.5324 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.371e-05/0.4211, allocations: 19.95 kB / 0.5324 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007805/0.4219, allocations: 223.4 kB / 0.5326 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.674e-05/0.422, allocations: 25.72 kB / 0.5326 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005115/0.4225, allocations: 57.69 kB / 0.5327 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/0.4226, allocations: 44.73 kB / 0.5327 GB, free: 5.199 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004678/0.423, allocations: 302.9 kB / 0.533 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.913e-05/0.4231, allocations: 56.91 kB / 0.5331 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009887/0.4241, allocations: 0.5567 MB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.4242, allocations: 9.938 kB / 0.5336 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4242, allocations: 0 / 0.5336 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.4242, allocations: 5.297 kB / 0.5336 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.4264, allocations: 1.336 MB / 0.5349 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4264, allocations: 2.438 kB / 0.535 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004526/0.4268, allocations: 112.3 kB / 0.5351 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.4269, allocations: 8.219 kB / 0.5351 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.4269, allocations: 13.41 kB / 0.5351 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.4269, allocations: 4.938 kB / 0.5351 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4269, allocations: 6.562 kB / 0.5351 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.4277, allocations: 0.6467 MB / 0.5357 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.4279, allocations: 134.5 kB / 0.5359 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.575e-05/0.4279, allocations: 12.09 kB / 0.5359 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.4282, allocations: 21.86 kB / 0.5359 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.024e-05/0.4283, allocations: 32.58 kB / 0.5359 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.4283, allocations: 19.67 kB / 0.5359 GB, free: 3.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003608/0.4287, allocations: 332 kB / 0.5362 GB, free: 2.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4287, allocations: 3.938 kB / 0.5363 GB, free: 2.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007333/0.4294, allocations: 161.2 kB / 0.5364 GB, free: 2.879 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001049/0.4305, allocations: 1.199 MB / 0.5376 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000943/0.4315, allocations: 0.6095 MB / 0.5382 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.4315, allocations: 1.188 kB / 0.5382 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.4318, allocations: 242.2 kB / 0.5384 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/0.4325, allocations: 110.6 kB / 0.5385 GB, free: 1.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00726/0.4398, allocations: 5.798 MB / 0.5442 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.4405, allocations: 0.9977 MB / 0.5451 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005671/0.441, allocations: 229.3 kB / 0.5454 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003599/0.4414, allocations: 254.8 kB / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4414, allocations: 0 / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.4701, allocations: 11.39 MB / 0.5567 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.678, allocations: 4.062 kB / 0.5567 GB, free: 0.7656 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches