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.001721/0.001721, allocations: 108.4 kB / 17.06 MB, free: 5.82 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.001815/0.001815, allocations: 193.4 kB / 18 MB, free: 4.965 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.448/1.448, 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.1946/0.1946, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.375, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004339/0.3794, allocations: 3.451 MB / 0.507 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3811, allocations: 1.501 MB / 0.5085 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.3812, allocations: 9.844 kB / 0.5085 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000729/0.382, allocations: 257.1 kB / 0.5087 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.3825, allocations: 287.1 kB / 0.509 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.3828, allocations: 125.1 kB / 0.5091 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.3832, allocations: 341.2 kB / 0.5094 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.3835, allocations: 137.3 kB / 0.5096 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.3837, allocations: 151.1 kB / 0.5097 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.3839, allocations: 155.5 kB / 0.5099 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.3839, allocations: 14.78 kB / 0.5099 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004793/0.3844, allocations: 328.5 kB / 0.5102 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.3845, allocations: 98.98 kB / 0.5103 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.3846, allocations: 111.1 kB / 0.5104 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.3851, allocations: 360.2 kB / 0.5107 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3851, allocations: 0 / 0.5107 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3851, allocations: 7.938 kB / 0.5107 GB, free: 2.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3851, allocations: 0 / 0.5107 GB, free: 2.961 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.0005985/0.3857, allocations: 0.5128 MB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3858, allocations: 14.27 kB / 0.5112 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.522e-05/0.3859, allocations: 58.02 kB / 0.5113 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008392/0.3867, allocations: 98.55 kB / 0.5114 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.387, allocations: 265.6 kB / 0.5116 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.387, allocations: 11.81 kB / 0.5117 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.3871, allocations: 26.75 kB / 0.5117 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.3875, allocations: 318.8 kB / 0.512 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.3876, allocations: 4.703 kB / 0.512 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.3876, allocations: 10.23 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.3876, allocations: 17.31 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000436/0.3881, allocations: 301.3 kB / 0.5123 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.3896, allocations: 1.262 MB / 0.5135 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004157/0.39, allocations: 235.7 kB / 0.5138 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.3902, allocations: 101.7 kB / 0.5139 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3902, allocations: 2.094 kB / 0.5139 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.3902, allocations: 33.03 kB / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.644e-06/0.3902, allocations: 0 / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007769/0.391, allocations: 449.3 kB / 0.5143 GB, free: 0.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.3911, allocations: 79.95 kB / 0.5144 GB, free: 460 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.3913, allocations: 204.7 kB / 0.5146 GB, free: 320 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.3913, allocations: 30.98 kB / 0.5146 GB, free: 284 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.389e-05/0.3914, allocations: 160.6 kB / 0.5148 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.3914, allocations: 56.66 kB / 0.5148 GB, free: 92 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.3915, allocations: 51.86 kB / 0.5149 GB, free: 56 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3916, allocations: 330 kB / 0.5152 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.3918, allocations: 84.78 kB / 0.5153 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.392, allocations: 158.9 kB / 0.5154 GB, free: 15.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.3923, allocations: 265.6 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3924, allocations: 1.062 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004474/0.3928, allocations: 299.5 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3928, allocations: 5.719 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3929, allocations: 7.766 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3929, allocations: 3.938 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.3931, allocations: 52.75 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3931, allocations: 4.188 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.3933, allocations: 15.28 kB / 0.5161 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.3933, allocations: 12.34 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.0001654/0.3935, allocations: 155.8 kB / 0.5162 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.3936, allocations: 25.69 kB / 0.5162 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.394, allocations: 229.5 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.394, allocations: 6.219 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.394, allocations: 1.672 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.394, allocations: 5.266 kB / 0.5165 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.3956, allocations: 0.9491 MB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.3956, allocations: 3.969 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3958, allocations: 37.77 kB / 0.5174 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.3958, allocations: 5.375 kB / 0.5174 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.3958, allocations: 13.38 kB / 0.5175 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-05/0.3959, allocations: 13.84 kB / 0.5175 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.3959, allocations: 5.156 kB / 0.5175 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004819/0.3964, allocations: 421.2 kB / 0.5179 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.3964, allocations: 103.7 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.3965, allocations: 11.62 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.3967, allocations: 12.03 kB / 0.518 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.3967, allocations: 22.66 kB / 0.518 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.3967, allocations: 12.75 kB / 0.518 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.3969, allocations: 154.9 kB / 0.5182 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3969, allocations: 0 / 0.5182 GB, free: 13.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.3972, allocations: 49.47 kB / 0.5182 GB, free: 13.77 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.0009613/0.3982, allocations: 0.9387 MB / 0.5191 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003837/0.3986, allocations: 236.2 kB / 0.5194 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3986, allocations: 1.031 kB / 0.5194 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3988, allocations: 98.17 kB / 0.5195 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004667/0.3993, allocations: 41.73 kB / 0.5195 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.4026, allocations: 2.691 MB / 0.5221 GB, free: 10.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.4031, allocations: 0.7648 MB / 0.5229 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.4033, allocations: 52.84 kB / 0.5229 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.4034, allocations: 65.88 kB / 0.523 GB, free: 9.934 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4034, allocations: 0 / 0.523 GB, free: 9.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.4307, allocations: 4.126 MB / 0.527 GB, free: 9.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.462/8.893, allocations: 15.39 kB / 0.527 GB, free: 9.352 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