Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001212/0.001212, allocations: 111 kB / 17.06 MB, free: 5.781 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.001311/0.001311, allocations: 199.9 kB / 18 MB, free: 4.953 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.03 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 63.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3223, allocations: 58.05 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005072/0.3274, allocations: 3.469 MB / 0.507 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.3292, allocations: 1.495 MB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3294, allocations: 5.125 kB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007442/0.3301, allocations: 257.9 kB / 0.5087 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000576/0.3307, allocations: 282.5 kB / 0.509 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.331, allocations: 125.4 kB / 0.5091 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004227/0.3315, allocations: 349.3 kB / 0.5094 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.3318, allocations: 135.7 kB / 0.5096 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.3321, allocations: 163.3 kB / 0.5097 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.3323, allocations: 147.9 kB / 0.5099 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.3323, allocations: 14.06 kB / 0.5099 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005102/0.3328, allocations: 333.8 kB / 0.5102 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.333, allocations: 94.8 kB / 0.5103 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3331, allocations: 112.3 kB / 0.5104 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000457/0.3335, allocations: 356.5 kB / 0.5107 GB, free: 2.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3336, allocations: 1.062 kB / 0.5107 GB, free: 2.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3336, allocations: 0 / 0.5107 GB, free: 2.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3336, allocations: 4 kB / 0.5107 GB, free: 2.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000716/0.3343, allocations: 0.5138 MB / 0.5112 GB, free: 2.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.3343, allocations: 9.031 kB / 0.5112 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.445e-05/0.3344, allocations: 55.78 kB / 0.5113 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.3355, allocations: 97.16 kB / 0.5114 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.3358, allocations: 263 kB / 0.5116 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.3358, allocations: 11.16 kB / 0.5116 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.3358, allocations: 24.33 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.3363, allocations: 319.7 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3363, allocations: 0 / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.3364, allocations: 15.39 kB / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.41e-05/0.3364, allocations: 16.72 kB / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.3368, allocations: 293.1 kB / 0.5123 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.3383, allocations: 1.261 MB / 0.5135 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004053/0.3387, allocations: 235.2 kB / 0.5137 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.3389, allocations: 103.7 kB / 0.5138 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.3389, allocations: 6.891 kB / 0.5138 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.3389, allocations: 36.31 kB / 0.5139 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.3389, allocations: 1.281 kB / 0.5139 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007643/0.3397, allocations: 441.1 kB / 0.5143 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.3397, allocations: 80.28 kB / 0.5144 GB, free: 428 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.3399, allocations: 205.8 kB / 0.5146 GB, free: 288 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.3399, allocations: 33.7 kB / 0.5146 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.338e-05/0.34, allocations: 156.5 kB / 0.5148 GB, free: 104 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.34, allocations: 56.03 kB / 0.5148 GB, free: 60 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.239e-05/0.3401, allocations: 45.22 kB / 0.5149 GB, free: 32 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3403, allocations: 328.9 kB / 0.5152 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.3404, allocations: 85.84 kB / 0.5153 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.3406, allocations: 166.2 kB / 0.5154 GB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.3409, allocations: 262.9 kB / 0.5157 GB, free: 15.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3409, allocations: 1.594 kB / 0.5157 GB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004227/0.3413, allocations: 294.9 kB / 0.5159 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3414, allocations: 7.547 kB / 0.516 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3414, allocations: 9.266 kB / 0.516 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3414, allocations: 4.344 kB / 0.516 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.3417, allocations: 53.83 kB / 0.516 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.3417, allocations: 8.344 kB / 0.516 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.3418, allocations: 17.66 kB / 0.516 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.3419, allocations: 13.25 kB / 0.5161 GB, free: 15.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (27): * Single equations (assignments): 27 * 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.0001357/0.342, allocations: 151.7 kB / 0.5162 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.586e-05/0.342, allocations: 20.03 kB / 0.5162 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003906/0.3424, allocations: 234.3 kB / 0.5164 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3425, allocations: 1.094 kB / 0.5164 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3425, allocations: 1.094 kB / 0.5164 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3425, allocations: 2.031 kB / 0.5164 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.3439, allocations: 0.954 MB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.3439, allocations: 3.406 kB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.3441, allocations: 36.39 kB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.149e-05/0.3441, allocations: 5.219 kB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.3442, allocations: 14.75 kB / 0.5174 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.3442, allocations: 6.047 kB / 0.5174 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/0.3442, allocations: 8.688 kB / 0.5174 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004898/0.3447, allocations: 410.4 kB / 0.5178 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.3448, allocations: 104.6 kB / 0.5179 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.3448, allocations: 10.39 kB / 0.5179 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.345, allocations: 14.14 kB / 0.518 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.345, allocations: 20.14 kB / 0.518 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.3451, allocations: 18.84 kB / 0.518 GB, free: 13.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001407/0.3452, allocations: 149.1 kB / 0.5181 GB, free: 13.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3452, allocations: 4 kB / 0.5181 GB, free: 13.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.3456, allocations: 49.72 kB / 0.5182 GB, free: 13.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0006842/0.3463, allocations: 0.9456 MB / 0.5191 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003848/0.3467, allocations: 225.4 kB / 0.5193 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.3467, allocations: 5.312 kB / 0.5193 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.3469, allocations: 96.52 kB / 0.5194 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.3474, allocations: 44.09 kB / 0.5195 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.3505, allocations: 2.695 MB / 0.5221 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.3509, allocations: 0.7663 MB / 0.5229 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.351, allocations: 49.28 kB / 0.5229 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3512, allocations: 70.84 kB / 0.523 GB, free: 9.91 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3512, allocations: 0 / 0.523 GB, free: 9.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.3733, allocations: 4.171 MB / 0.527 GB, free: 9.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.536/7.909, allocations: 18.42 kB / 0.5271 GB, free: 9.336 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches