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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 210.1 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2444/0.2444, allocations: 38.52 MB / 352.5 MB, free: 12.52 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 71.03 kB / 492.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3282, allocations: 62.47 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007813/0.336, allocations: 6.275 MB / 0.5481 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003918/0.3399, allocations: 2.029 MB / 0.5501 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004383/0.3403, allocations: 31.28 kB / 0.5501 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.3424, allocations: 0.7182 MB / 0.5508 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.3436, allocations: 384 kB / 0.5512 GB, free: 8.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.3449, allocations: 407.7 kB / 0.5516 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.3461, allocations: 0.9328 MB / 0.5525 GB, free: 8.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007182/0.3468, allocations: 401.2 kB / 0.5529 GB, free: 7.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3479, allocations: 451.1 kB / 0.5533 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.349, allocations: 0.5698 MB / 0.5539 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.3491, allocations: 60.41 kB / 0.5539 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005873/0.3497, allocations: 265.5 kB / 0.5542 GB, free: 7.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004359/0.3501, allocations: 426.5 kB / 0.5546 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004644/0.3506, allocations: 431.8 kB / 0.555 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.3519, allocations: 1.023 MB / 0.556 GB, free: 6.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3519, allocations: 1.062 kB / 0.556 GB, free: 6.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3519, allocations: 0 / 0.556 GB, free: 6.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.3519, allocations: 3.938 kB / 0.556 GB, free: 6.016 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.001767/0.3536, allocations: 1.021 MB / 0.557 GB, free: 5.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3537, allocations: 15.98 kB / 0.557 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001554/0.3538, allocations: 139.3 kB / 0.5571 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009554/0.3548, allocations: 204.2 kB / 0.5573 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009826/0.3558, allocations: 494.1 kB / 0.5578 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.771e-05/0.3558, allocations: 54.38 kB / 0.5579 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.356, allocations: 79.94 kB / 0.5579 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3575, allocations: 1.13 MB / 0.559 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.3576, allocations: 7.938 kB / 0.559 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-05/0.3577, allocations: 32 kB / 0.5591 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.595e-05/0.3577, allocations: 53.97 kB / 0.5591 GB, free: 2.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.3591, allocations: 0.8623 MB / 0.56 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005794/0.3649, allocations: 4.983 MB / 0.5648 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000739/0.3656, allocations: 388.8 kB / 0.5652 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.3659, allocations: 197.7 kB / 0.5654 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.366, allocations: 8 kB / 0.5654 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.366, allocations: 42.56 kB / 0.5654 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.385e-06/0.366, allocations: 0 / 0.5654 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.001973/0.368, allocations: 1.089 MB / 0.5665 GB, free: 10.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.368, allocations: 85.05 kB / 0.5666 GB, free: 10.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.3686, allocations: 0.494 MB / 0.5671 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.3686, allocations: 33.83 kB / 0.5671 GB, free: 10.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.369, allocations: 467.3 kB / 0.5675 GB, free: 9.793 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.3691, allocations: 166.6 kB / 0.5677 GB, free: 9.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.3693, allocations: 146.6 kB / 0.5678 GB, free: 9.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3695, allocations: 370.7 kB / 0.5682 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/0.3699, allocations: 237.8 kB / 0.5684 GB, free: 8.875 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007122/0.3706, allocations: 0.6168 MB / 0.569 GB, free: 8.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.3718, allocations: 0.9416 MB / 0.5699 GB, free: 6.949 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.3718, allocations: 4 kB / 0.57 GB, free: 6.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001388/0.3732, allocations: 0.8957 MB / 0.5708 GB, free: 6.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3733, allocations: 12 kB / 0.5708 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.3733, allocations: 16.84 kB / 0.5709 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.803e-05/0.3733, allocations: 16 kB / 0.5709 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007436/0.3741, allocations: 223.6 kB / 0.5711 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.321e-05/0.3741, allocations: 35.8 kB / 0.5711 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/0.3745, allocations: 47.95 kB / 0.5712 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.771e-05/0.3746, allocations: 40 kB / 0.5712 GB, free: 5.66 MB / 414.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.0004131/0.375, allocations: 305.7 kB / 0.5715 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-05/0.3751, allocations: 55.62 kB / 0.5715 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.3761, allocations: 0.5718 MB / 0.5721 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3761, allocations: 4 kB / 0.5721 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3761, allocations: 0 / 0.5721 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.3761, allocations: 0 / 0.5721 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.3786, allocations: 1.301 MB / 0.5734 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.3786, allocations: 4 kB / 0.5734 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.379, allocations: 107.9 kB / 0.5735 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.379, allocations: 7.938 kB / 0.5735 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.379, allocations: 15.98 kB / 0.5735 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/0.3791, allocations: 8.188 kB / 0.5735 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.3791, allocations: 8 kB / 0.5735 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008498/0.3799, allocations: 0.646 MB / 0.5742 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.38, allocations: 59.56 kB / 0.5742 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.761e-05/0.3801, allocations: 11.98 kB / 0.5742 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3804, allocations: 19.98 kB / 0.5742 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.008e-05/0.3804, allocations: 43.7 kB / 0.5743 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.3805, allocations: 20 kB / 0.5743 GB, free: 2.348 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000359/0.3808, allocations: 326.8 kB / 0.5746 GB, free: 2.031 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3808, allocations: 0 / 0.5746 GB, free: 2.031 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007031/0.3815, allocations: 160 kB / 0.5748 GB, free: 1.875 MB / 414.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.001175/0.3827, allocations: 1.202 MB / 0.5759 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009676/0.3837, allocations: 0.5833 MB / 0.5765 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.3837, allocations: 0 / 0.5765 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003512/0.384, allocations: 231.2 kB / 0.5767 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000692/0.3847, allocations: 109.9 kB / 0.5768 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008115/0.3928, allocations: 5.803 MB / 0.5825 GB, free: 9.395 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008525/0.3937, allocations: 1.004 MB / 0.5835 GB, free: 8.363 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005548/0.3942, allocations: 221 kB / 0.5837 GB, free: 8.148 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.3947, allocations: 255.3 kB / 0.5839 GB, free: 7.898 MB / 430.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3947, allocations: 0 / 0.5839 GB, free: 7.898 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04575/0.4404, allocations: 12.24 MB / 0.5959 GB, free: 11.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.17, allocations: 8.062 kB / 0.5959 GB, free: 11.8 MB / 446.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --stepSize=4e-05 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.103399107931182]