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.001116/0.001116, allocations: 105.8 kB / 17.06 MB, free: 6.016 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.001267/0.001267, allocations: 195 kB / 18 MB, free: 5.094 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.354/1.354, 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.1789/0.1789, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001263, allocations: 63.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3097, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004055/0.3138, allocations: 3.462 MB / 0.507 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.3154, allocations: 1.5 MB / 0.5085 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.3155, allocations: 8.719 kB / 0.5085 GB, free: 4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007451/0.3163, allocations: 256.4 kB / 0.5087 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005218/0.3168, allocations: 286.3 kB / 0.509 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.3171, allocations: 130.2 kB / 0.5091 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.3175, allocations: 345.5 kB / 0.5094 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.3178, allocations: 138 kB / 0.5096 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.318, allocations: 155 kB / 0.5097 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.3182, allocations: 155.9 kB / 0.5099 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.3182, allocations: 13.5 kB / 0.5099 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004606/0.3187, allocations: 333.6 kB / 0.5102 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.3188, allocations: 94.61 kB / 0.5103 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.843e-05/0.3189, allocations: 111.4 kB / 0.5104 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004388/0.3194, allocations: 354.7 kB / 0.5107 GB, free: 2.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3194, allocations: 0 / 0.5107 GB, free: 2.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3194, allocations: 4 kB / 0.5107 GB, free: 2.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.3194, allocations: 1.062 kB / 0.5107 GB, free: 2.949 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.0005641/0.32, allocations: 0.517 MB / 0.5112 GB, free: 2.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.32, allocations: 13.61 kB / 0.5112 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.3201, allocations: 50.8 kB / 0.5113 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000833/0.3209, allocations: 93.91 kB / 0.5114 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.3212, allocations: 270.8 kB / 0.5116 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.3213, allocations: 11.28 kB / 0.5117 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.3213, allocations: 15.19 kB / 0.5117 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.3218, allocations: 320.2 kB / 0.512 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3218, allocations: 0 / 0.512 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.3218, allocations: 14.25 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.553e-05/0.3219, allocations: 21.55 kB / 0.512 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004311/0.3223, allocations: 296.4 kB / 0.5123 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.3239, allocations: 1.264 MB / 0.5135 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004028/0.3243, allocations: 229.1 kB / 0.5137 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.3244, allocations: 100.5 kB / 0.5138 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.3244, allocations: 7.047 kB / 0.5138 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3245, allocations: 36.53 kB / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.3245, allocations: 0 / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007618/0.3252, allocations: 444.5 kB / 0.5143 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.3253, allocations: 80.25 kB / 0.5144 GB, free: 464 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.3255, allocations: 207.9 kB / 0.5146 GB, free: 320 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.3255, allocations: 27.5 kB / 0.5146 GB, free: 288 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.3256, allocations: 155.9 kB / 0.5148 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.3256, allocations: 55.89 kB / 0.5148 GB, free: 100 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.286e-05/0.3257, allocations: 48.52 kB / 0.5149 GB, free: 68 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3259, allocations: 329.5 kB / 0.5152 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.326, allocations: 85.7 kB / 0.5153 GB, free: 15.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.3262, allocations: 171.5 kB / 0.5154 GB, free: 15.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/0.3266, allocations: 261.7 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3266, allocations: 0.8125 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004383/0.327, allocations: 297.8 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3271, allocations: 7.219 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3271, allocations: 10.31 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3271, allocations: 5.188 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.3273, allocations: 52.59 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3274, allocations: 7.656 kB / 0.516 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.3275, allocations: 15.45 kB / 0.516 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.3275, allocations: 7.844 kB / 0.5161 GB, free: 15.27 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.000142/0.3277, allocations: 160.5 kB / 0.5162 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.3277, allocations: 16.09 kB / 0.5162 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004194/0.3282, allocations: 235.2 kB / 0.5164 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3282, allocations: 2.625 kB / 0.5164 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3282, allocations: 0.5 kB / 0.5164 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3282, allocations: 1.938 kB / 0.5164 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.3297, allocations: 0.9489 MB / 0.5174 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3297, allocations: 4.125 kB / 0.5174 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.3299, allocations: 36.56 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.3299, allocations: 5.688 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.3299, allocations: 9.562 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.809e-06/0.3299, allocations: 6.203 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.33, allocations: 9.031 kB / 0.5174 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.3304, allocations: 417.3 kB / 0.5178 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/0.3305, allocations: 100.2 kB / 0.5179 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.3306, allocations: 15.61 kB / 0.518 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.3309, allocations: 9.203 kB / 0.518 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.493e-05/0.3309, allocations: 27.75 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.331, allocations: 9.031 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.3312, allocations: 153.7 kB / 0.5181 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3312, allocations: 0 / 0.5181 GB, free: 13.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005712/0.3318, allocations: 54.8 kB / 0.5182 GB, free: 13.79 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.0006775/0.3324, allocations: 0.9416 MB / 0.5191 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004112/0.3329, allocations: 226 kB / 0.5193 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3329, allocations: 5.219 kB / 0.5193 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.333, allocations: 97.53 kB / 0.5194 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006169/0.3337, allocations: 46.95 kB / 0.5195 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.3371, allocations: 2.692 MB / 0.5221 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.3375, allocations: 0.766 MB / 0.5228 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.3377, allocations: 56.75 kB / 0.5229 GB, free: 9.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.3378, allocations: 61.34 kB / 0.523 GB, free: 9.949 MB / 398.1 MB Notification: Performance of SimCode: time 1.933e-06/0.3378, allocations: 0 / 0.523 GB, free: 9.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.3616, allocations: 4.175 MB / 0.527 GB, free: 9.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.377, allocations: 18.23 kB / 0.5271 GB, free: 9.379 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