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.001648/0.001648, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001855/0.001855, allocations: 197.3 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.471/1.471, 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.273/0.273, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 67.89 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3329, allocations: 58.06 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006211/0.3391, allocations: 6.096 MB / 0.5096 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.3421, allocations: 1.948 MB / 0.5115 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004719/0.3425, allocations: 22 kB / 0.5115 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.3442, allocations: 0.6917 MB / 0.5122 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009225/0.3452, allocations: 376.2 kB / 0.5125 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.3462, allocations: 398.1 kB / 0.5129 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.3473, allocations: 0.9413 MB / 0.5138 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006378/0.348, allocations: 0.5046 MB / 0.5143 GB, free: 432 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005746/0.3486, allocations: 421.9 kB / 0.5147 GB, free: 244 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007032/0.3493, allocations: 0.535 MB / 0.5152 GB, free: 36 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.276e-05/0.3494, allocations: 58.59 kB / 0.5153 GB, free: 36 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005463/0.3499, allocations: 236.1 kB / 0.5155 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004493/0.3504, allocations: 415 kB / 0.5159 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005198/0.3509, allocations: 427.9 kB / 0.5163 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.3525, allocations: 1.02 MB / 0.5173 GB, free: 15.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3525, allocations: 0.625 kB / 0.5173 GB, free: 15.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3525, allocations: 0 / 0.5173 GB, free: 15.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.3525, allocations: 0.6562 kB / 0.5173 GB, free: 15.22 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.002107/0.3546, allocations: 1.085 MB / 0.5184 GB, free: 14.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3547, allocations: 13.36 kB / 0.5184 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/0.3549, allocations: 135 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007864/0.3557, allocations: 140.2 kB / 0.5187 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.3567, allocations: 0.5556 MB / 0.5192 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/0.3568, allocations: 57.31 kB / 0.5193 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3569, allocations: 81.98 kB / 0.5193 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.3587, allocations: 1.13 MB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.3588, allocations: 11.38 kB / 0.5204 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.477e-05/0.3589, allocations: 33.16 kB / 0.5205 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-05/0.3589, allocations: 52.09 kB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.3605, allocations: 0.8629 MB / 0.5214 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.3666, allocations: 5.062 MB / 0.5263 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007586/0.3674, allocations: 412.3 kB / 0.5267 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.3677, allocations: 210.9 kB / 0.5269 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.144e-05/0.3678, allocations: 15.27 kB / 0.5269 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.3679, allocations: 41.41 kB / 0.527 GB, free: 8.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.866e-06/0.3679, allocations: 1.375 kB / 0.527 GB, free: 8.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002002/0.3699, allocations: 1.08 MB / 0.528 GB, free: 8.273 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.37, allocations: 87.53 kB / 0.5281 GB, free: 8.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006414/0.3706, allocations: 0.4952 MB / 0.5286 GB, free: 7.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.3707, allocations: 31.89 kB / 0.5286 GB, free: 7.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.371, allocations: 477.7 kB / 0.5291 GB, free: 7.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3712, allocations: 162.6 kB / 0.5292 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3714, allocations: 151.2 kB / 0.5294 GB, free: 7.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.3717, allocations: 370.7 kB / 0.5297 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.3721, allocations: 236.3 kB / 0.5299 GB, free: 6.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007813/0.3729, allocations: 0.6217 MB / 0.5306 GB, free: 6.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.3742, allocations: 0.9408 MB / 0.5315 GB, free: 5.578 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.3742, allocations: 3 kB / 0.5315 GB, free: 5.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001444/0.3756, allocations: 0.8996 MB / 0.5324 GB, free: 5.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3757, allocations: 9.844 kB / 0.5324 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.3757, allocations: 14.59 kB / 0.5324 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.736e-05/0.3757, allocations: 18.28 kB / 0.5324 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000777/0.3765, allocations: 225 kB / 0.5326 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-05/0.3766, allocations: 26.48 kB / 0.5326 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004874/0.3771, allocations: 56.75 kB / 0.5327 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.3771, allocations: 40.16 kB / 0.5327 GB, free: 5.168 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.0004519/0.3776, allocations: 307.7 kB / 0.533 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-05/0.3777, allocations: 56.62 kB / 0.5331 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009938/0.3787, allocations: 0.5616 MB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.3787, allocations: 5.781 kB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.3787, allocations: 1.125 kB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.3787, allocations: 3.984 kB / 0.5336 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.381, allocations: 1.333 MB / 0.5349 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.381, allocations: 2.719 kB / 0.5349 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.3815, allocations: 112.8 kB / 0.535 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.3815, allocations: 7.812 kB / 0.5351 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.3815, allocations: 17.33 kB / 0.5351 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3815, allocations: 3.75 kB / 0.5351 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3815, allocations: 3 kB / 0.5351 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000878/0.3824, allocations: 0.6512 MB / 0.5357 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.3826, allocations: 134.5 kB / 0.5358 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.35e-05/0.3827, allocations: 12.86 kB / 0.5359 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.383, allocations: 21.58 kB / 0.5359 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/0.383, allocations: 35.67 kB / 0.5359 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.3831, allocations: 19.84 kB / 0.5359 GB, free: 3.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003944/0.3835, allocations: 328.3 kB / 0.5362 GB, free: 2.906 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3835, allocations: 3.938 kB / 0.5362 GB, free: 2.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000743/0.3842, allocations: 162.5 kB / 0.5364 GB, free: 2.883 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.001176/0.3854, allocations: 1.199 MB / 0.5376 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009849/0.3864, allocations: 0.6122 MB / 0.5382 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3864, allocations: 1.062 kB / 0.5382 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.3868, allocations: 241.3 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.0006988/0.3875, allocations: 111.5 kB / 0.5385 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008137/0.3957, allocations: 5.797 MB / 0.5442 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008027/0.3965, allocations: 1.001 MB / 0.5451 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005615/0.3971, allocations: 226.7 kB / 0.5454 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003629/0.3975, allocations: 258.1 kB / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3975, allocations: 0 / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.4334, allocations: 11.38 MB / 0.5567 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.82/9.254, allocations: 6.812 kB / 0.5567 GB, free: 0.7852 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