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.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.0008056/0.0008056, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000916/0.000916, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9519/0.9519, allocations: 177.1 MB / 204.3 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.2407/0.2407, allocations: 29.41 MB / 290.1 MB, free: 2.445 MB / 266.7 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 430.2 MB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.298e-05, allocations: 2.281 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.00388/0.003903, allocations: 3.439 MB / 433.6 MB, free: 10.16 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.005494, allocations: 1.422 MB / 435.1 MB, free: 8.734 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.005658, allocations: 7.938 kB / 435.1 MB, free: 8.727 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006526/0.006311, allocations: 262.8 kB / 435.3 MB, free: 8.469 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005432/0.006854, allocations: 282.6 kB / 435.6 MB, free: 8.191 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.007127, allocations: 127.5 kB / 435.7 MB, free: 8.066 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000379/0.007506, allocations: 342.9 kB / 436.1 MB, free: 7.73 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.007779, allocations: 122.1 kB / 436.2 MB, free: 7.613 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.008126, allocations: 207.3 kB / 436.4 MB, free: 7.41 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.008345, allocations: 151.6 kB / 436.5 MB, free: 7.262 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.008368, allocations: 12 kB / 436.5 MB, free: 7.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000446/0.008814, allocations: 295 kB / 436.8 MB, free: 6.961 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.008944, allocations: 111.7 kB / 436.9 MB, free: 6.852 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.789e-05/0.009031, allocations: 67.84 kB / 437 MB, free: 6.785 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005351/0.009567, allocations: 370.9 kB / 437.4 MB, free: 6.422 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.009574, allocations: 7.938 kB / 437.4 MB, free: 6.414 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.009576, allocations: 0 / 437.4 MB, free: 6.414 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.009584, allocations: 0 / 437.4 MB, free: 6.414 MB / 410.7 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.0007419/0.01033, allocations: 464.9 kB / 437.8 MB, free: 5.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.01038, allocations: 11.98 kB / 437.8 MB, free: 5.918 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.447e-05/0.01043, allocations: 54.72 kB / 437.9 MB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006587/0.01109, allocations: 96.67 kB / 438 MB, free: 5.762 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.01142, allocations: 205.3 kB / 438.2 MB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.01143, allocations: 16.36 kB / 438.2 MB, free: 5.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.01147, allocations: 20.38 kB / 438.2 MB, free: 5.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.01186, allocations: 318.6 kB / 438.5 MB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.01188, allocations: 4.188 kB / 438.5 MB, free: 5.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.0119, allocations: 8.125 kB / 438.6 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.01194, allocations: 23.98 kB / 438.6 MB, free: 5.129 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.01224, allocations: 291.7 kB / 438.9 MB, free: 4.844 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.01359, allocations: 1.174 MB / 440 MB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.01398, allocations: 222.5 kB / 440.3 MB, free: 3.355 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.628e-05/0.01408, allocations: 93.72 kB / 440.3 MB, free: 3.258 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.0141, allocations: 7.938 kB / 440.4 MB, free: 3.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.01413, allocations: 38.5 kB / 440.4 MB, free: 3.203 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 3.116e-06/0.01414, allocations: 0 / 440.4 MB, free: 3.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007124/0.01485, allocations: 438.2 kB / 440.8 MB, free: 2.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.01491, allocations: 89.05 kB / 440.9 MB, free: 2.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.01509, allocations: 202.2 kB / 441.1 MB, free: 2.453 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.0151, allocations: 25.83 kB / 441.1 MB, free: 2.422 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.699e-05/0.01519, allocations: 172.2 kB / 441.3 MB, free: 2.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.01523, allocations: 63.47 kB / 441.4 MB, free: 2.188 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.0153, allocations: 45.7 kB / 441.4 MB, free: 2.137 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.0154, allocations: 330.8 kB / 441.7 MB, free: 1.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.695e-05/0.0155, allocations: 83.95 kB / 441.8 MB, free: 1.723 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.01572, allocations: 160.4 kB / 442 MB, free: 1.535 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.01594, allocations: 264.4 kB / 442.2 MB, free: 1.246 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.01594, allocations: 8 kB / 442.2 MB, free: 1.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002767/0.01622, allocations: 285.2 kB / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.01624, allocations: 7.562 kB / 442.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.01624, allocations: 8 kB / 442.5 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.01626, allocations: 4 kB / 442.5 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.01642, allocations: 55.91 kB / 442.6 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.01643, allocations: 11.88 kB / 442.6 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.315e-05/0.01651, allocations: 19.94 kB / 442.6 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.01653, allocations: 15.92 kB / 442.6 MB, free: 0.8359 MB / 410.7 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.0001088/0.01663, allocations: 149.8 kB / 442.8 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.01666, allocations: 15.91 kB / 442.8 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002715/0.01693, allocations: 231.2 kB / 443 MB, free: 436 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.01694, allocations: 8 kB / 443 MB, free: 428 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.01694, allocations: 3.938 kB / 443 MB, free: 424 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.01695, allocations: 0 / 443 MB, free: 424 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1798/0.1967, allocations: 0.8981 MB / 443.9 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1967, allocations: 3.188 kB / 443.9 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.1969, allocations: 36.48 kB / 444 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.1969, allocations: 6.531 kB / 444 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.1969, allocations: 11.97 kB / 444 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.1969, allocations: 6.031 kB / 444 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1969, allocations: 9.797 kB / 444 MB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.1971, allocations: 410.2 kB / 444.4 MB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5e-05/0.1972, allocations: 24.7 kB / 444.4 MB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.1972, allocations: 6.062 kB / 444.4 MB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.1973, allocations: 19.06 kB / 444.4 MB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.1974, allocations: 23.53 kB / 444.5 MB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1974, allocations: 13.38 kB / 444.5 MB, free: 53.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.752e-05/0.1975, allocations: 148.8 kB / 444.6 MB, free: 53.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1975, allocations: 2.953 kB / 444.6 MB, free: 53.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002641/0.1977, allocations: 51.09 kB / 444.7 MB, free: 53.65 MB / 410.7 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.000328/0.198, allocations: 0.9402 MB / 445.6 MB, free: 52.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002301/0.1983, allocations: 209 kB / 445.8 MB, free: 52.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1983, allocations: 0 / 445.8 MB, free: 52.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.684e-05/0.1984, allocations: 98.72 kB / 445.9 MB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.1987, allocations: 41.05 kB / 446 MB, free: 52.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.2003, allocations: 2.665 MB / 448.6 MB, free: 50.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.232e-05/0.2003, allocations: 151.3 kB / 448.8 MB, free: 50.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.063e-05/0.2004, allocations: 57.31 kB / 448.8 MB, free: 50.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.756e-05/0.2005, allocations: 65.38 kB / 448.9 MB, free: 50.7 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2005, allocations: 3.156 kB / 448.9 MB, free: 50.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.2181, allocations: 4.885 MB / 453.8 MB, free: 49.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.6/6.818, allocations: 10.86 kB / 453.8 MB, free: 49.61 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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: 8.84534312505275]